wp-china-yes/wp-china-yes.php
2024-03-08 20:36:09 +08:00

33 lines
923 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* Plugin Name: WP-China-Yes
* Description: 文派叶子 🍃WP-China-Yes是中国 WordPress 生态基础设施软件,犹如落叶新芽,生生不息。
* Author: 文派开源
* Author URI: https://wp-china-yes.com
* Version: 3.6.1
* License: GPLv3 or later
* Text Domain: wp-china-yes
* Domain Path: /languages
* Network: True
* Requires at least: 4.9
* Tested up to: 9.9.9
* Requires PHP: 5.6.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace WenPai\ChinaYes;
defined( 'ABSPATH' ) || exit;
const VERSION = '3.6.1';
const PLUGIN_FILE = __FILE__;
const PLUGIN_DIR = __DIR__;
require_once( plugin_dir_path( __FILE__ ) . 'vendor/autoload.php' );
// 注册插件激活钩子
register_activation_hook( PLUGIN_FILE, [ Plugin::class, 'activate' ] );
// 注册插件删除钩子
register_uninstall_hook( PLUGIN_FILE, [ Plugin::class, 'uninstall' ] );
new Plugin();