Auto-Update Plugin
Create your own self-hosted WordPress Plugin repository for pushing automatic updates.
by Abid Omar · github.com/omarabid/self-hosted-wordpress-plugin-repository · website
★ 396stars
125forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/omarabid/self-hosted-wordpress-plugin-repository/archive/refs/heads/master.zipFrom the readme
Self-Hosted-WordPress-Plugin-repository
Create your own self-hosted WordPress Plugin repository for pushing automatic updates.
For integration with Composer, please use wp-autoupdate
Quick Start
1) Place the wpautoupdate.php file somewhere in your plugin directory and require it.
2) Hook the init function to initiatilize the update function when your plugin loads. Best put in your main plugin.php file:
The licenseuser and licensekey fields are optional. You can use these to implement an auto-update functionility for specified customers only. It's left to the developer to implement this if needed.
Note that it's possible to store certain settings as a Wordpress option like the pluginremotepath version.
If you do so, you can use getoption() to get fields like pluginremotepath, licenseuser, licensekey directly from your plugin. This increases maintainability.
3) Create your server back-end to handle the update requests. You are fee to implement this any way you want, with any framework you want.
The idea is that when Wordpress loads your plugin, it will check the given remote path to see if an update is availabe through the returned transient. For a basic implementation see t