Added core events and tracking of distinct sidebars.

This commit is contained in:
Andrey Savchenko committed 2018-12-14 17:08:26 +02:00
1 parent 4166802c89
commit 2cb708f70d
3 files changed
+18 -2

No files matched your search

+6 -2
View File
@@ -18,12 +18,16 @@ class Core_Events implements Hook_Event_Config_Interface {
[ 'Plugins Loaded Hook', 'plugin', 'plugins_loaded' ],
[ 'Themes Load', 'theme', 'setup_theme', 'after_setup_theme' ],
[ 'Core Init', 'core', 'init', 'wp_loaded' ],
[ 'Query Setup', 'core', 'wp_loaded', 'template_redirect', PHP_INT_MAX, -1 ],
[ 'Template Loader', 'theme', 'template_redirect', 'template_include' ],
[ 'Admin Init', 'core', 'admin_init' ],
[ 'Admin Menu', 'core', '_admin_menu', 'admin_menu' ],
[ 'Toolbar', 'core', 'admin_bar_menu', '' ],
[ 'Admin Print Scripts', 'core', 'admin_enqueue_scripts', 'admin_print_scripts' ],
[ 'Head Hook', 'theme', 'wp_head' ],
[ 'Main Loop', 'theme', 'loop_start', 'loop_end' ],
[ 'Admin Print Scripts', 'core', 'admin_enqueue_scripts', 'admin_print_scripts' ],
[ 'Sidebar', 'theme', 'dynamic_sidebar_before', 'dynamic_sidebar_after' ],
[ 'Toolbar', 'core', 'admin_bar_menu', '' ],
[ 'Footer Hook', 'theme', 'wp_footer', '' ],
];
}
}