kasparsd/envato-automatic-plugin-update
Composer 安装命令:
composer require kasparsd/envato-automatic-plugin-update
包简介
WordPress plugin library for providing automatic plugin updates to CodeCanyon plugins
README 文档
README
This is a library for WordPress plugin developers who sell their plugins on CodeCanyon and would like to provide automatic plugin updates to their users.
Requirements
User must install the Envato WordPress Toolkit plugin.
Instructions
In your plugin, attach an action to plugins_loaded:
add_action( 'plugins_loaded', 'my_envato_updates_init' );
function my_envato_updates_init() {
include plugin_dir_path( __FILE__ ) . 'lib/envato-plugin-update.php';
PresetoPluginUpdateEnvato::instance()->add_item( array(
'id' => NNNNNNN,
'basename' => plugin_basename( __FILE__ )
) );
}
where the id is the product ID of your plugin. For example, the product ID of this plugin:
http://codecanyon.net/item/storage-for-contact-form-7-/7806229
is
7806229
Example
This library is used by the Storage for Contact Form 7 plugin.
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2014-08-27