content-pilot/wp-plugin-update-checker
最新稳定版本:2.0.0
Composer 安装命令:
composer require content-pilot/wp-plugin-update-checker
包简介
Allow third-party, private plugins to be updated from GitHub
README 文档
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
统计信息
- 总下载量: 4.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-03