Can a manually uploaded plugin be made to track updates from the WordPress.org plugin directory?

I've made a plugin which I will give to some users to test by manually uploading the zip file. I later on want to host the plugin in the WordPress.org plugin directory, but I want to avoid users having to uninstall my plugin to install the directory-hosted one because I have code in my uninstaller that deletes all of the terms, etc. that my plugin adds.

Is there a way to make WordPress track a plugin in the official directory instead of a locally uploaded zip?

Topic ziparchive wordpress.org automatic-updates plugins Wordpress

Category Web


As long as everything was made according to WP best practices all your manually installed versions will update the same as the ones installed from wordpress.org.

The updater looks at many things to identify your plugin. However, the most important is the plugin URI (you can change the directory of many plugins and they will still work), but the name and slug are also checked. After WP detects that it has a matching plugin it will check the version and send out update information as needed.

Edit 1 Based on a little more research, I see that the update check seems to be done by wordpress.org at this url: http://api.wordpress.org/plugins/update-check/1.1/ to see how the call is structured you can look at the core code for wp_update_plugins().

The reason your manually installed plugin will update is the same as the reason you can manually download and install a plugin from wordpress.org and see it recieve updates in the wp-admin.


There is a way to have a privately-hosted plugin folder that will get updated via the normal Admin, Updates process. It's a bit complex to set up, but I have done it.

The info is here: https://github.com/YahnisElsts/plugin-update-checker#github-integration .

I modified it to use a private area of a domain I own to be the code repository.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.