-
Notifications
You must be signed in to change notification settings - Fork 15
/
Bootstrap.php
35 lines (29 loc) · 870 Bytes
/
Bootstrap.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
<?php
/**
* Plugin Name: Current admin screen info
* Description: Show information about contextual hooks and availability of globals in the admin UI.
* Version: 2.0
* Author: Franz Josef Kaiser <[email protected]>
* Author URI: http://unserkaiser.com
* Contributers: Stephen Harris
* License: The MIT License (MIT)
* License URI: http://www.tldrlegal.com/license/mit-license
*
* Copyright: © Franz Josef Kaiser 2011-2015
*/
if ( file_exists( __DIR__.'/vendor/autoload.php' ) )
require __DIR__.'/vendor/autoload.php';
use WCM\CurrentAdminInfo\Hooks;
use WCM\CurrentAdminInfo\Screen;
use WCM\CurrentAdminInfo\Globals;
add_action( 'plugins_loaded', function()
{
if ( ! is_admin() )
return;
$hooks = new Hooks;
$hooks->setup();
$screen = new Screen;
$screen->setup();
$globals = new Globals;
$globals->setup();
}, 5 );