Tangible Updater module
Support automatic updates of WordPress plugins and themes from self-hosted update server
★ 0stars
0forks
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/tangibleinc/updater/archive/refs/heads/main.zipFrom the readme
Updater
Plugin and theme updater module
Based on:
- Plugin update checker
- WP Update Server
Source code
https://github.com/tangibleinc/updater
Install
Add as dependency in composer.json and run composer update.
Or install as a module in tangible.config.js.
Use
After loading the updater, its newest version instance is ready on pluginsloaded action.
Register the plugin with its name and file path.
Framework
When registering with the Framework module, the same plugin instance can be passed to the Updater.
Cloud
Optionally set the property cloudid to pass additional parameters to the update server.
Licensing
This feature requires a plugin to be registered with the Framework module, which adds a plugin settings page.
The plugin needs to register a settings tab for the user to enter a license key. The saved value is passed in the request to the update server.
Develop
Prerequisites: Git, Node, Docker
Clone project and install dependencies.
Dev dependencies
Optionally, install dev dependencies for testing.
To keep them updated, run:
Local site
Start local dev server for WordPress test site using wp-env.
When running the first time, install Composer dev dependenc