forked from WordPress/two-factor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcore-style-plugin.php
49 lines (42 loc) · 1.12 KB
/
core-style-plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* @wordpress-plugin
* Plugin Name: Core Style Plugin
* Plugin URI: https://pluginmachine.com/plugin/page
* Description: words-describes-plugin
* Author: Josh Pollock
* Version: 0.1.0
* Author URI: https://pluginmachine.com
* Network: True
* Text Domain: core-style-plugin
*/
/**
* Shortcut constant to the path of this file.
*/
define( 'CORE_STYLE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
/**
* Version of the plugin.
*/
define( 'CORE_STYLE_PLUGIN_VERSION', '0.1.0' );
// PERFLAB_MAIN_FILE
define( 'CORE_STYLE_PLUGIN_MAIN_FILE', __FILE__ );
// PERFLAB_MODULES_SETTING
define( 'CORE_STYLE_PLUGIN_SETTING', 'core_style_plugin_settings' );
// PERFLAB_MODULES_SCREEN
define( 'CORE_STYLE_PLUGIN_SCREEN', 'core-style-plugin' );
/**
* Include the core that handles the common bits.
*/
require_once CORE_STYLE_PLUGIN_DIR . 'class-core-style-plugin.php';
/**
* Load the plugin.
*/
Core_Style_Plugin::add_hooks();
/**
* Load the admin if we are in the admin.
*/
if ( is_admin() ) {
include CORE_STYLE_PLUGIN_DIR . 'class-core-style-plugin-admin.php';
$admin = new Core_Style_Plugin_Admin();
$admin->add_hooks();
}