Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

New plugin hooks in WordPress 5.1

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 plugin_loaded action YES 1
2 wp_normalize_site_data filter YES 1
3 wp_initialize_site_args filter YES 1
4 pre_wp_is_site_initialized filter YES 1
5 x_redirect_by filter YES 1
6 has_post_thumbnail filter YES 1
7 pre_wp_unique_post_slug filter YES 1
8 wp_insert_term_duplicate_term_check filter YES 1
9 pre_count_users filter YES 1
10 rest_post_search_query filter YES 1
11 mu_plugin_loaded action YES 1
12 network_plugin_loaded action YES 1
13 wp_using_themes filter YES 1
14 edit_post_{$post->post_type} note action YES 1
15 wp_insert_site action YES 1
16 wp_initialize_site action YES 1
17 wp_update_site action YES 1
18 wp_validate_site_deletion action YES 1
19 wp_uninitialize_site action YES 1
20 wp_delete_site action YES 1
21 wp_validate_site_data action YES 1
22 registered_taxonomy_for_object_type action YES 1
23 unregistered_taxonomy_for_object_type action YES 1
24 pre_get_scheduled_event filter YES 1
25 comments_list_table_query_args filter YES 1
26 download_url_error_max_body_size filter YES 1
27 pre_render_block filter YES 1
28 render_block_data filter YES 1
29 users_pre_query filter YES 1
30 allow_empty_comment filter YES 1
31 pre_schedule_event filter YES 1
32 pre_reschedule_event filter YES 1
33 pre_unschedule_event filter YES 1
34 pre_clear_scheduled_hook filter YES 1
35 pre_unschedule_hook filter YES 1
36 block_editor_no_javascript_message filter YES 1
37 get_schedule filter YES 1
38 pre_get_ready_cron_jobs filter YES 1
39 wp_targeted_link_rel filter YES 1
40 wp_die_json_handler filter YES 1
41 wp_update_php_url filter YES 1
42 wp_kses_uri_attributes filter YES 1
43 load_script_textdomain_relative_path filter YES 1
44 pre_load_script_translations filter YES 1
45 load_script_translation_file filter YES 1
46 load_script_translations 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.