こんにちは、今日はWordPressで管理ページリクエスト時に発生するアクションフックについてまとめていきます。
確認環境
WordPress 5.5.1
フック一覧
フック名 | 説明 |
muplugins_loaded | |
registered_taxonomy | |
registered_post_type | |
plugins_loaded | |
sanitize_comment_cookies | |
setup_theme | |
load_textdomain | |
after_setup_theme | |
auth_cookie_valid | |
set_current_user | |
init | |
widgets_init | |
register_sidebar | |
wp_register_sidebar_widget | |
wp_default_scripts | |
wp_default_styles | |
admin_bar_init | |
add_admin_bar_menus | |
wp_loaded | |
auth_cookie_valid | |
auth_redirect | |
_admin_menu | |
admin_menu | |
admin_init | |
current_screen | |
load-(page) | |
send_headers | |
pre_get_posts | |
posts_selection | |
wp | |
admin_xml_ns | |
admin_enqueue_scripts | |
admin_print_styles-(hookname) | |
admin_print_styles | |
admin_print_scripts-(hookname) | |
admin_print_scripts | |
wp_print_scripts | |
admin_head-(hookname) | |
admin_head | |
admin_menu | |
in_admin_header | |
admin_notices | |
all_admin_notices | |
(hookname) | |
restrict_manage_posts | |
the_post | |
pre_user_query | |
in_admin_footer | |
admin_footer | |
admin_bar_menu | |
wp_before_admin_bar_render | |
wp_after_admin_bar_render | |
admin_print_footer_scripts | |
admin_footer-(hookname) | |
shutdown | |
wp_dashboard_setup |