mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-03 11:11:30 +08:00
23 lines
398 B
PHP
Executable file
23 lines
398 B
PHP
Executable file
<?php
|
|
|
|
namespace WenPai\ChinaYes\Service;
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
|
|
|
|
/**
|
|
* Class Update
|
|
* 插件更新服务
|
|
* @package WenPai\ChinaYes\Service
|
|
*/
|
|
class Update {
|
|
|
|
public function __construct() {
|
|
PucFactory::buildUpdateChecker(
|
|
'https://api.wenpai.net/china-yes/version-check',
|
|
CHINA_YES_PLUGIN_FILE,
|
|
'wp-china-yes'
|
|
);
|
|
}
|
|
}
|