content-pilot / wp-plugin-update-checker
Allow third-party, private plugins to be updated from GitHub
Installs: 3 815
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
README
Library to bootstrap plugin updates for third-party, private repositories if an access token is present. This class requires the Plugin Update Checker class v5 to be exist. Typically only included in CP Web Pilot to avoid conflict. Use the Debug Bar plugin to troubleshoot a proper connection.
Installation
Require this package in your composer.json
composer require content-pilot/wp-plugin-update-checker
Usage
Add the following snippets in your main plugin file.
use Content_Pilot\Wp_Plugin_Update_Checker\Bootstrap as Update;
public function __construct() {
$this->run_update();
}
private function run_update() {
$plugin_update = new Update( PLUGIN_NAME );
$this->loader->add_action( 'plugins_loaded', $plugin_update, 'update_from_cloud', 10 );
}
Changelog
2.0.0
- Require Plugin Update Checker 5
1.2.0
- Change how license key is pulled from database
1.1.2
- Remove the asset parameter so we grab the first asset on the release
1.1.1
- Define the plugin path for the release asset
1.1.0
- Enable release assets to grab the built version of the repository
1.0.1
- Change plugin_dir_path to accomodate vendor directory nesting
- Add README
- Add CHANGELOG
1.0.0
- Initial commit and release on Packagist