better-staridc-MNBT
1<?php
2/**
3 * Plugin Name: MNBT 虚拟主机销售
4 * Plugin URI: https://github.com/MNBT/wp-seller-plugin
5 * Description: 在 WordPress 上售卖 MNBT(梦奈宝塔)虚拟主机:商品下单、自动开通、我的主机与到期管理,向 cPanel 式体验靠拢。
6 * Version: 0.1.0
7 * Requires at least: 6.0
8 * Requires PHP: 7.4
9 * Author: MNBT
10 * License: GPL-2.0-or-later
11 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
12 * Text Domain: wp-seller-plugin
13 * Domain Path: /languages
14 *
15 * @package MnbtWp
16 */
17
18if ( ! defined( 'ABSPATH' ) ) {
19 exit;
20}
21
22define( 'MNBTWP_VERSION', '0.1.0' );
23define( 'MNBTWP_FILE', __FILE__ );
24define( 'MNBTWP_DIR', plugin_dir_path( __FILE__ ) );
25define( 'MNBTWP_URL', plugin_dir_url( __FILE__ ) );
26
27require_once MNBTWP_DIR . 'includes/class-plugin.php';
28
29register_activation_hook( __FILE__, array( '\MnbtWp\Plugin', 'activate' ) );
30register_deactivation_hook( __FILE__, array( '\MnbtWp\Plugin', 'deactivate' ) );
31
32/**
33 * 插件入口单例。
34 *
35 * @return \MnbtWp\Plugin
36 */
37function mnbtwp() {
38 return \MnbtWp\Plugin::instance();
39}
40
41mnbtwp();