nldx/wp-plugin-update-checker-class 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2025-03-07