From fcf17e44d4dcb2556843ff80491e003d856a3f2c Mon Sep 17 00:00:00 2001 From: Andrey Savchenko Date: Thu, 20 Dec 2018 15:17:48 +0200 Subject: [PATCH] Adjusted core events for better calblacks coverage. --- src/Event/Core_Events.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Event/Core_Events.php b/src/Event/Core_Events.php index 9e5938c..f5a2147 100644 --- a/src/Event/Core_Events.php +++ b/src/Event/Core_Events.php @@ -17,10 +17,11 @@ class Core_Events implements Hook_Event_Config_Interface { [ 'Plugins Load', 'plugin', '', 'plugins_loaded', - 1, - 2 ], [ 'Plugins Loaded Hook', 'plugin', 'plugins_loaded' ], [ 'Themes Load', 'theme', 'setup_theme', 'after_setup_theme' ], - [ 'Core Init', 'core', 'init', 'wp_loaded' ], + [ 'Init Hook', 'core', 'init' ], + [ 'WP Loaded Hook', 'core', '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 Init Hook', 'core', 'admin_init' ], [ 'Admin Menu', 'core', '_admin_menu', 'admin_menu' ], [ 'Admin Print Scripts', 'core', 'admin_enqueue_scripts', 'admin_print_scripts' ], [ 'Head Hook', 'theme', 'wp_head' ],