定制 jeffreyvanrossum/wp-plugin-updater 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jeffreyvanrossum/wp-plugin-updater

最新稳定版本:0.0.1

Composer 安装命令:

composer require jeffreyvanrossum/wp-plugin-updater

包简介

Provides a way to check for plugin updates on a alternative host then wordpress.org.

README 文档

README

vanrossum.dev Logo

Total Downloads Latest Stable Version License

WP Plugin Updater

Allows you to check for updates for a plugin on a different server then wordpress.org.

🚸 As long as this package is still in development, the API might be subject to change and should not considered stable. Use at your own risk.

Made for a specific use case which may not fit everybody's needs.

Based on the example plugin from LemonSqueezy.

Example

(new Jeffreyvr\WPPluginUpdater\WPPluginUpdater(
    __FILE__, // plugin file path
    'your-plugin/your-plugin.php',
    'your-plugin',
    '1.0',
    "https://yourpluginsite.test/check-update",
    "https://yourpluginsite.test/validate-license"
))->setCanCheck(function() {
    // determine if check can be made
})
->setActions([
    // classes should implement Jeffreyvr\WPPluginUpdater\Action interface
    'activate-license' => ActivateLicenseAction::class,
    'deactivate-license' => DeactivateLicenseAction::class,
    'check-license' => CheckLicenseAction::class,
    'check-update' => CheckUpdateAction::class
]);

new \Jeffreyvr\WPPluginUpdater\Updater($this->updater);

Contributors

License

MIT. Please see the License File for more information.

统计信息

  • 总下载量: 49
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固