| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: WPJAM BASIC |
| 4 |
Plugin URI: https://blog.wpjam.com/project/wpjam-basic/ |
| 5 |
Description: WPJAM 常用的函数和接口,屏蔽所有 WordPress 不常用的功能。 |
| 6 |
Version: 7.0.6 |
| 7 |
Requires at least: 6.8 |
| 8 |
Tested up to: 7.1 |
| 9 |
Requires PHP: 7.4 |
| 10 |
Author: Denis |
| 11 |
Author URI: http://blog.wpjam.com/ |
| 12 |
Text Domain: wpjam |
| 13 |
Domain Path: /template |
| 14 |
*/ |
| 15 |
define('WPJAM_BASIC_PLUGIN_DIR', plugin_dir_path(__FILE__)); |
| 16 |
define('WPJAM_BASIC_PLUGIN_URL', plugin_dir_url(__FILE__)); |
| 17 |
define('WPJAM_BASIC_PLUGIN_FILE', __FILE__); |
| 18 |
|
| 19 |
include __DIR__.'/includes/class-wpjam-args.php'; |
| 20 |
include __DIR__.'/includes/class-wpjam-api.php'; |
| 21 |
include __DIR__.'/includes/class-wpjam-model.php'; |
| 22 |
include __DIR__.'/includes/class-wpjam-field.php'; |
| 23 |
include __DIR__.'/includes/class-wpjam-core.php'; |
| 24 |
|
| 25 |
if(is_admin()){ |
| 26 |
include __DIR__.'/includes/class-wpjam-admin.php'; |
| 27 |
include __DIR__.'/includes/class-wpjam-list-table.php'; |
| 28 |
} |
| 29 |
|
| 30 |
include __DIR__.'/public/wpjam-compat.php'; |
| 31 |
include __DIR__.'/public/wpjam-functions.php'; |
| 32 |
include __DIR__.'/public/wpjam-utils.php'; |
| 33 |
include __DIR__.'/public/wpjam-route.php'; |
| 34 |
|
| 35 |
do_action('wpjam_loaded'); |