WordPress Hook Order Of Execution

In order to build anything for WordPress, you know that action and filter hooks are the way to go. But hooks are still a bit of a mystery because we don’t really have any concept of the order in which they are executed. Until now:

HookFront PageAdmin Page
muplugins_loadedXX
registered_taxonomyXX
registered_post_typeXX
plugins_loadedXX
sanitize_comment_cookiesXX
setup_themeXX
load_textdomainXX
after_setup_themeXX
auth_cookie_malformedX
auth_cookie_validXX
set_current_userXX
initXX
widgets_initXX
register_sidebarXX
wp_register_sidebar_widgetXX
wp_default_scriptsXX
wp_default_stylesXX
admin_bar_initXX
add_admin_bar_menusXX
wp_loadedXX
parse_requestX
auth_cookie_validX
auth_redirectX
admin_menuX
admin_initX
current_screenX
send_headersXX
parse_queryX
pre_get_postsXX
posts_selectionXX
wpXX
template_redirectX
get_headerX
wp_enqueue_scriptsX
wp_headX
wp_print_stylesX
admin_xml_nsX
admin_enqueue_scriptsX
admin_print_stylesX
admin_print_scriptsX
wp_print_scriptsXX
admin_headX
admin_menuX
in_admin_headerX
admin_noticesX
all_admin_noticesX
restrict_manage_postsX
get_search_formX
loop_startX
the_postXX
get_template_part_contentX
loop_endX
get_sidebarX
dynamic_sidebarX
pre_get_commentsX
wp_metaX
get_footerX
wp_footerX
wp_print_footer_scriptsX
pre_user_queryX
in_admin_footerX
admin_footerX
admin_bar_menuXX
wp_before_admin_bar_renderXX
wp_after_admin_bar_renderXX
admin_print_footer_scriptsX
shutdownXX
wp_dashboard_setupX

Leave a comment

Leave a Reply