Add additional core events

This commit is contained in:
Tom Nowell committed 2014-04-12 18:41:11 +00:00
1 parent b774292fda
commit 84eba6e39d
1 file changed
+42
+42
View File
@@ -42,6 +42,37 @@ class Core_Events extends Laps_Events {
'category' => 'core', 'category' => 'core',
); );
$stops['admin_init'][- 1] = array(
'event' => 'Core Admin Init',
'category' => 'admin',
);
$stops['admin_init'][ PHP_INT_MAX -1 ] = array(
'action' => 'stop',
'event' => 'Core Admin Init',
'category' => 'admin',
);
$stops['_admin_menu'][- 1] = array(
'event' => 'Admin Menu',
'category' => 'admin',
);
$stops['admin_menu'][ PHP_INT_MAX -1 ] = array(
'action' => 'stop',
'event' => 'Admin Menu',
'category' => 'admin',
);
$stops['admin_bar_menu'][-1] = array(
'event' => 'Admin Bar',
'category' => 'admin',
);
$stops['admin_bar_menu'][ PHP_INT_MAX -1 ] = array(
'action' => 'stop',
'event' => 'Admin Bar',
'category' => 'admin',
);
$stops['loop_start'][10] = array( $stops['loop_start'][10] = array(
'event' => 'Main Loop', 'event' => 'Main Loop',
'category' => 'theme', 'category' => 'theme',
@@ -53,6 +84,17 @@ class Core_Events extends Laps_Events {
'category' => 'theme', 'category' => 'theme',
); );
$stops['admin_enqueue_scripts'][10] = array(
'event' => 'Admin Print Scripts',
'category' => 'admin',
);
$stops['admin_print_scripts'][10] = array(
'action' => 'stop',
'event' => 'Admin Print Scripts',
'category' => 'admin',
);
return $stops; return $stops;
} }
} }