• rezgo

    (@rezgo)


    Is there a way of excluding certain directories from the automatic plugin upgrade process? It appears that there is not because all the files are first deleted and then the updated plugin files are downloaded.

    For instance, if we allow users to add custom theme directories within the plugin itself, we wouldn’t want those user created directories to be removed.

    If this is not currently possible, what would the recommended location be for custom themes for a plugin?

Viewing 1 replies (of 1 total)
  • anmari

    (@anmari)

    I believe that the uploads folder is the one to use – it does not get overwritten.

    I uusually created a carefully named subfolder.

    Use the wordpress function to get the folder base dir or base url – that way your plugin will still work if the directoryt setup is something unusual

    See http://codex.ww.wp.xz.cn/Function_Reference/wp_upload_dir

Viewing 1 replies (of 1 total)

The topic ‘Excluding files from automatic plugin upgrades’ is closed to new replies.