-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_fyeo.php
47 lines (41 loc) · 1.22 KB
/
_fyeo.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
<?php
/**
* The plugin bootstrap file
*
* @link https://github.com/regisphilibert/wp-for-your-eyes-only
* @since 1.0.0
* @package For Your Eyes Only
*
* @wordpress-plugin
* Plugin Name: For Your Eyes Only
* Description: A Wordpress plugin to show beaufitul print_r and other to selected users (not based on capabilites).
* Version: 1.0.0
* Author: Regis Philibert
* Author URI: https://regisphilibert.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
require "admin/Submenu.class.php";
require "admin/SubmenuPage.class.php";
require "admin/Serializer.class.php";
require "admin/Deserializer.class.php";
require "components/Component.class.php";
require "components/Alert/Alert.class.php";
require "components/Sticky/Sticky.class.php";
add_action( 'plugins_loaded', 'fyeo_init' );
/**
* Starts the plugin.
*
* @since 1.0.0
*/
function fyeo_init() {
$serializer = new jsSerializer();
$serializer->init();
$deserializer = new jsDeserializer();
$fyeo = new jsSubmenu( new jsSubmenuPage($deserializer));
$fyeo->init();
}