Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

New plugin hooks in WordPress 5.8

Important! Some WordPress hooks get applied in multiple PHP files. If you are trying to figure out what a specific WordPress hook does, sort the table by "hook" and make sure you are looking in all the files where it occurs.

Hook Type New? Instances
1 allowed_block_types_all filter YES 1
2 block_categories_all filter YES 1
3 block_editor_rest_api_preload_paths filter YES 1
4 block_editor_settings_all filter YES 1
5 deleted_theme action YES 1
6 delete_theme action YES 1
7 document_title filter YES 1
8 enable_loading_object_cache_dropin filter YES 1
9 excerpt_allowed_wrapper_blocks filter YES 1
10 image_editor_output_format filter YES 1
11 media_library_infinite_scrolling filter YES 1
12 rest_after_save_widget action YES 1
13 rest_delete_widget action YES 1
14 rest_pattern_directory_collection_params filter YES 1
15 rest_prepare_block_pattern filter YES 1
16 rest_prepare_sidebar filter YES 1
17 rest_prepare_widget filter YES 1
18 rest_prepare_widget_type filter YES 1
19 rest_save_sidebar action YES 1
20 should_load_remote_block_patterns filter YES 1
21 should_load_separate_core_block_assets filter YES 1
22 site_health_navigation_tabs filter YES 1
23 site_health_tab_content action YES 1
24 styles_inline_size_limit filter YES 1
25 update_plugins_{$hostname} note filter YES 1
26 user_erasure_fulfillment_email_content filter YES 1
27 user_erasure_fulfillment_email_headers filter YES 1
28 user_erasure_fulfillment_email_subject filter YES 1
29 user_request_confirmed_email_content filter YES 1
30 use_widgets_block_editor filter YES 1
31 widget_block_content filter YES 1
32 widget_block_dynamic_classname filter YES 1
33 widget_types_to_hide_from_legacy_widget_block filter YES 1
34 wp_{$post->post_type}_revisions_to_keep note filter YES 1
35 {$hook_name} note action YES 1
36 {$hook_name} note filter YES 1

Important warning about variable hooks

Some hooks have variables in their names. For example, pre_${taxonomy}_$field and admin_head- both have variable names. In general, any hook that ends (or begins) with - or _, or contains a $, has a variable name. Since the syntax with which these variables are defined may change from version to version, this page may think that a hook is deprecated (or new) even if it is not. You can usually catch this sort of thing by comparing this hook to the list of "related hooks" below.