WordPress アクションフック一覧

WordPressのアクションフックがいまいち憶えられないので、まとめてみた。
一般リクエストと管理画面中でなんとなくタイミングを合わせてみています。

During Typical RequestDuring Admin Page Request
muplugins_loaded muplugins_loaded
plugins_loaded plugins_loaded
sanitize_comment_cookies sanitize_comment_cookies
setup_theme setup_theme
load_textdomain load_textdomain
after_setup_theme after_setup_theme
auth_cookie_malformed auth_cookie_valid
set_current_user set_current_user
init init
widgets_init widgets_init
register_sidebar register_sidebar
wp_register_sidebar_widget wp_register_sidebar_widget
wp_loaded wp_loaded
auth_redirect
wp_default_scripts*
_admin_menu
admin_menu
admin_init
load-edit.php
parse_request* parse_request*
send_headers* send_headers*
parse_query*
pre_get_posts* pre_get_posts*
posts_selection posts_selection
wp* wp*
template_redirect
admin_xml_ns
wp_default_styles*
admin_enqueue_scripts
admin_print_styles-edit.php
admin_print_styles
admin_print_scripts-edit.php
admin_print_scripts
admin_head-edit.php
admin_head
in_admin_header
get_header
wp_head
wp_enqueue_scripts
wp_print_styles
wp_print_scripts wp_print_scripts
get_template_part_loop
adminmenu
admin_notices
restrict_manage_posts
loop_start*
the_post*
loop_end*
get_sidebar
dynamic_sidebar
get_search_form
parse_query*
wp_meta
get_footer
in_admin_footer
wp_footer admin_footer
admin_print_footer_scripts
wp_print_footer_scripts wp_print_footer_scripts
admin_footer-edit.php
shutdown shutdown

Leave a Reply