nldx/wp-plugin-update-checker-class
最新稳定版本:v2.1.3
Composer 安装命令:
composer require nldx/wp-plugin-update-checker-class
包简介
A class that allows checking for updates in a self hosted scenario.
关键字:
README 文档
README
Getting started
composer require nldx/wp-plugin-update-checker-class
Usage
define( 'NLDX_BOOTSTRAP_BLOCKS_VERSION', '1.0.0' );
define( 'NLDX_BOOTSTRAP_BLOCKS_FILE', __FILE__ );
define( 'NLDX_BOOTSTRAP_BLOCKS_DIR', plugin_dir_path( __FILE__ ) );
define( 'NLDX_BOOTSTRAP_BLOCKS_SLUG', dirname ( plugin_basename( __FILE__ ) ) );
define( 'NLDX_BOOTSTRAP_BLOCKS_INFO', 'https://example.domain.com/example-plugin/info.json');
/**
* Include classes.
*/
if ( !class_exists( \NLDX\UpdateChecker::class ) ) {
require_once NLDX_BOOTSTRAP_BLOCKS_DIR . 'vendor/nldx/wp-plugin-update-checker-class/class-update-checker.php';
}
/**
* Check for updates.
*/
use NLDX\UpdateChecker;
new UpdateChecker(
NLDX_BOOTSTRAP_BLOCKS_SLUG,
NLDX_BOOTSTRAP_BLOCKS_VERSION,
NLDX_BOOTSTRAP_BLOCKS_INFO
);
统计信息
- 总下载量: 107
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2025-03-07