Hook Name | Description |
---|---|
Actions Run During a Typical Request |
|
muplugins_loaded | After must-use plugins are loaded. |
registered_taxonomy | For category, post_tag, etc. |
registered_post_type | For post, page, etc. |
plugins_loaded | After active plugins and pluggable functions are loaded. |
sanitize_comment_cookies | When comment cookies are sanitized. |
setup_theme | Before the theme is loaded. |
load_textdomain | For the default domain |
after_setup_theme | Generally used to initialize theme settings/options. This is the first action hook available to themes, triggered immediately after the active theme's functions.php file is loaded. add_theme_support() should be called here, since the init action hook is too late to add some features. At this stage, the current user is not yet authenticated. |
auth_cookie_malformed | |
auth_cookie_valid | |
set_current_user | |
init | Typically used by plugins to initialize. The current user is already authenticated by this time. |
└─ widgets_init | Used to register sidebars. Fired at 'init' priority 1 (and so before 'init' actions with priority ≥ 1!) |
register_sidebar | For each sidebar and footer area |
wp_register_sidebar_widget | For each widget |
wp_default_scripts | (ref array) |
wp_default_styles | (ref array) |
admin_bar_init | |
add_admin_bar_menus | |
wp_loaded | After WordPress is fully loaded |
parse_request | Allows manipulation of HTTP request handling (ref array) |
send_headers | Allows customization of HTTP headers (ref array) |
parse_query | After query variables are set (ref array) |
pre_get_posts | Exposes the query-variables object before a query is executed. (ref array) |
posts_selection | Used by caching plugins. |
wp | After WP object is set up (ref array) |
template_redirect | Before determining which template to load. |
get_header | Before the header template file is loaded. |
wp_enqueue_scripts | When scripts and styles are enqueued. |
twentyeleven_enqueue_color_scheme | (Specific to Twenty Eleven) |
wp_head | Used to print scripts or data in the head tag on the front end. |
wp_print_styles | Before styles in the $handles queue are printed. |
wp_print_scripts | Before scripts in the $handles queue are printed. |
get_search_form | |
loop_start | (ref array) |
the_post | (ref array) Allows modification of the post object immediately after query |
get_template_part_content | Template part for the content |
loop_end | (ref array) |
get_sidebar | Before the sidebar template file is loaded. |
dynamic_sidebar | Before a widget’s display callback is called. |
get_search_form | |
pre_get_comments | (ref array) |
wp_meta | Before displaying echoed content in the sidebar. |
get_footer | Before the footer template file is loaded. |
get_sidebar | Before the sidebar template file is loaded. |
twentyeleven_credits | (Specific to Twenty Eleven) |
wp_footer | Before determining which template to load. |
wp_print_footer_scripts | When footer scripts are printed. |
admin_bar_menu | (ref array) |
wp_before_admin_bar_render | Before the admin bar is rendered. |
wp_after_admin_bar_render | After the admin bar is rendered. |
shutdown | Before PHP execution is about to end. |
Actions Run During an Admin Page Request |
|
muplugins_loaded | After must-use plugins are loaded |
registered_taxonomy | For category, post_tag, etc. |
registered_post_type | For post, page, etc. |
plugins_loaded | After active plugins and pluggable functions are loaded |
sanitize_comment_cookies | |
setup_theme | |
load_textdomain | For domain default |
after_setup_theme | At this stage, the current user is not yet authenticated. |
load_textdomain | For domain twentyeleven |
auth_cookie_valid | |
set_current_user | |
init | Typically used by plugins to initialize. The current user is already authenticated by this time. |
└─ widgets_init | Used to register sidebars. This is fired at 'init', with a priority of 1. |
register_sidebar | For each sidebar |
wp_register_sidebar_widget | For each widget |
wp_default_scripts | (ref array) |
wp_default_styles | (ref array) |
admin_bar_init | |
add_admin_bar_menus | |
wp_loaded | After WordPress is fully loaded |
auth_cookie_valid | |
auth_redirect | |
_admin_menu | See also: _user_admin_menu, _network_admin_menu |
admin_menu | See also: user_admin_menu, network_admin_menu |
admin_init | |
current_screen | |
load-(page) | |
send_headers | Where custom HTTP headers can be added |
pre_get_posts | Exposes the query-variables object before a query is executed. (ref array) |
posts_selection | |
wp | After WP object is set up (ref array) |
admin_xml_ns | |
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 | (ref array) |
pre_user_query | (ref array) |
in_admin_footer | |
admin_footer | |
admin_bar_menu | (ref array) |
wp_before_admin_bar_render | |
wp_after_admin_bar_render | |
admin_print_footer_scripts | |
admin_footer-(hookname) | Admin page footer |
shutdown | PHP execution is about to end |
wp_dashboard_setup | Allows customization of admin Dashboard |
function myplugin_menu() { if ( function_exists('add_management_page') ) { $page = add_management_page( 'myplugin', 'myplugin', 'manage_options', 'myplugin_slug', 'myplugin_admin_page' ); add_action( "admin_print_scripts-$page", 'myplugin_admin_head' ); } }
This section contains actions related to the queries WordPress uses to figure out what posts to display, the WordPress loop, activating plugins, and other fundamental-level WordPress code.
Total : 26654
Today :3
Today Visit Country :