1
0
Fork 0
mirror of https://github.com/yunluo/gdk.git synced 2024-06-16 04:25:14 +02:00
gdk/route.php

48 lines
1.4 KiB
PHP
Raw Normal View History

2020-01-25 07:52:35 +01:00
<?php
/*
2020-01-25 08:23:18 +01:00
Plugin Name: GitCafe Development Kit 极客公园开发套件
2020-01-25 07:52:35 +01:00
Plugin URI: https://www.nicetheme.cn/nicetheme-plugins-store.html
Description: nicetheme 的一些基本操作
Version: 0.3.5
Author URI: http://www.nicetheme.cn
Nicetheme Module: jimu
Text Domain: jimu
Compatible:
*/
if ( ! defined( 'ABSPATH' ) ) { exit; }
function deactivate_myself() {
deactivate_plugins( plugin_basename( __FILE__ ) );
2020-01-25 08:23:18 +01:00
wp_die('启动失败,积木插件需要运行在 PHP 7.2 版本及更高的环境下。');
2020-01-25 07:52:35 +01:00
}
2020-01-25 08:00:02 +01:00
if (!version_compare(PHP_VERSION, '7.2.26', '>=')) {
2020-01-25 07:52:35 +01:00
add_action('update_option_active_plugins', 'deactivate_myself');
}
define('NC_STORE_VER', '0.3.5');
2020-01-25 08:00:02 +01:00
define('NC_STORE_FILE', __FILE__);//插件入口文件
define('NC_BASE_URL', plugin_dir_url( __FILE__ ) );//插件目录url
define('NC_STORE_ROOT_PATH', plugin_dir_path( __FILE__ ) );//插件目录路径
2020-01-25 18:54:41 +01:00
//include('library/nc-base/kernel/kernel.php');
//include('library/nc-base/static-load.php');
//include('library/nc-base/add-menu-page.php');
2020-01-25 07:52:35 +01:00
2020-01-25 08:00:02 +01:00
if (version_compare(PHP_VERSION, '7.2.26', '>=')) {
2020-01-25 18:54:41 +01:00
//include('modules/field-group/Field_Group_Values.php');
//include('modules/field-group/get_all_custom_field_meta.php');
2020-01-25 07:52:35 +01:00
}
2020-01-25 18:54:41 +01:00
//include('modules/base/main.php');
include('framework/plugin-options.php');
2020-01-25 12:25:07 +01:00
include('functions/func_load.php');
2020-01-25 18:54:41 +01:00
2020-01-25 07:52:35 +01:00
function nc_store_pluggable_include() {
include( 'modules/pluggable/load.php' );
}
add_action( 'after_setup_theme', 'nc_store_pluggable_include', 99999 );