WordPress all actions and filters

function print_all_wp_actions() {
	global $wp_actions;
	echo 'all WordPress actions: <pre_>';
	print_r( $wp_actions );
	echo '</pre_>';
}
function print_all_wp_filters() {
	global $wp_filter;
	echo 'all WordPress filters: <pre_>';
	print_r( $wp_filter );
	echo '</pre_>';
}

All WordPress actions:

Array
(
    [muplugins_loaded] =&gt; 1
    [registered_taxonomy] =&gt; 10
    [registered_post_type] =&gt; 10
    [plugins_loaded] =&gt; 1
    [sanitize_comment_cookies] =&gt; 1
    [setup_theme] =&gt; 1
    [load_textdomain] =&gt; 3
    [after_setup_theme] =&gt; 1
    [auth_cookie_malformed] =&gt; 1
    [auth_cookie_valid] =&gt; 1
    [set_current_user] =&gt; 1
    [init] =&gt; 1
    [widgets_init] =&gt; 1
    [register_sidebar] =&gt; 1
    [wp_register_sidebar_widget] =&gt; 12
    [wp_default_scripts] =&gt; 1
    [wp_default_styles] =&gt; 1
    [admin_bar_init] =&gt; 1
    [add_admin_bar_menus] =&gt; 1
    [wp_loaded] =&gt; 1
    [parse_request] =&gt; 1
    [send_headers] =&gt; 1
    [parse_query] =&gt; 2
    [pre_get_posts] =&gt; 2
    [posts_selection] =&gt; 2
    [wp] =&gt; 1
    [template_redirect] =&gt; 1
    [get_header] =&gt; 1
    [wp_head] =&gt; 1
    [wp_enqueue_scripts] =&gt; 1
    [wp_print_styles] =&gt; 1
    [wp_print_scripts] =&gt; 1
    [before] =&gt; 1
    [loop_start] =&gt; 2
    [the_post] =&gt; 7
    [get_template_part_content] =&gt; 3
    [loop_end] =&gt; 2
    [get_sidebar] =&gt; 1
    [before_sidebar] =&gt; 1
    [dynamic_sidebar] =&gt; 4
    [pre_get_comments] =&gt; 1
    [get_footer] =&gt; 1
    [_s_credits] =&gt; 1
    [wp_footer] =&gt; 1
    [wp_print_footer_scripts] =&gt; 1
    [admin_bar_menu] =&gt; 1
    [wp_before_admin_bar_render] =&gt; 1
    [wp_after_admin_bar_render] =&gt; 1
)

Leave a Reply

Your email address will not be published. Required fields are marked *