2020-07-13 18:44:03 +08:00
|
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Plugin Name: WP-China-Yes
|
2024-03-08 20:36:09 +08:00
|
|
|
|
* Description: 文派叶子 🍃(WP-China-Yes)是中国 WordPress 生态基础设施软件,犹如落叶新芽,生生不息。
|
|
|
|
|
* Author: 文派开源
|
|
|
|
|
* Author URI: https://wp-china-yes.com
|
|
|
|
|
* Version: 3.6.1
|
2020-07-13 18:44:03 +08:00
|
|
|
|
* License: GPLv3 or later
|
2024-03-08 20:36:09 +08:00
|
|
|
|
* 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
|
2020-07-13 18:44:03 +08:00
|
|
|
|
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
|
|
|
|
*/
|
|
|
|
|
|
2024-03-08 20:36:09 +08:00
|
|
|
|
namespace WenPai\ChinaYes;
|
2021-10-01 19:40:00 +08:00
|
|
|
|
|
2024-03-08 20:36:09 +08:00
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
2021-10-01 19:40:00 +08:00
|
|
|
|
|
2024-03-08 20:36:09 +08:00
|
|
|
|
const VERSION = '3.6.1';
|
|
|
|
|
const PLUGIN_FILE = __FILE__;
|
|
|
|
|
const PLUGIN_DIR = __DIR__;
|
2021-10-01 19:40:00 +08:00
|
|
|
|
|
2024-03-08 20:36:09 +08:00
|
|
|
|
require_once( plugin_dir_path( __FILE__ ) . 'vendor/autoload.php' );
|
2021-10-01 19:40:00 +08:00
|
|
|
|
|
2024-03-08 20:36:09 +08:00
|
|
|
|
// 注册插件激活钩子
|
|
|
|
|
register_activation_hook( PLUGIN_FILE, [ Plugin::class, 'activate' ] );
|
|
|
|
|
// 注册插件删除钩子
|
|
|
|
|
register_uninstall_hook( PLUGIN_FILE, [ Plugin::class, 'uninstall' ] );
|
2021-10-01 19:40:00 +08:00
|
|
|
|
|
2024-03-08 20:36:09 +08:00
|
|
|
|
new Plugin();
|