Files
laps/src/class-core-events.php
T

58 lines
1.0 KiB
PHP

<?php
namespace Rarst\Laps;
/**
* Main set of events for WordPress core
*/
class Core_Events extends Laps_Events {
/**
* @return array
*/
public function get_events() {
$stops = array();
$stops['plugins_loaded'][20] = array(
'action' => 'stop',
'event' => 'Plugins Load',
'category' => 'plugin',
);
$stops['setup_theme'][0] = array(
'event' => 'Themes Load',
'category' => 'theme',
);
$stops['after_setup_theme'][20] = array(
'action' => 'stop',
'event' => 'Themes Load',
'category' => 'theme',
);
$stops['init'][- 1] = array(
'event' => 'Core Init',
'category' => 'core',
);
$stops['wp_loaded'][20] = array(
'action' => 'stop',
'event' => 'Core Init',
'category' => 'core',
);
$stops['loop_start'][10] = array(
'event' => 'Main Loop',
'category' => 'theme',
);
$stops['loop_end'][10] = array(
'action' => 'stop',
'event' => 'Main Loop',
'category' => 'theme',
);
return $stops;
}
}