Forums

Excluding files from automatic plugin upgrades (2 posts)

  1. rezgo
    Member
    Posted 1 year ago #

    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?

  2. anmari
    Member
    Posted 1 year ago #

    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.wordpress.org/Function_Reference/wp_upload_dir

Topic Closed

This topic has been closed to new replies.

About this Topic