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.

  • To sort the table, click on a column title.
  • Click a hook name to see details about the hook.
  • Click a file name to see only hooks used in that file.
Hook Type New? Instances
1 allow_empty_comment filter YES 1
2 block_editor_no_javascript_message filter YES 1
3 comments_list_table_query_args filter YES 1
4 download_url_error_max_body_size filter YES 1
5 edit_post_{$post->post_type} note action YES 1
6 get_schedule filter YES 1
7 has_post_thumbnail filter YES 1
8 load_script_textdomain_relative_path filter YES 1
9 load_script_translations filter YES 1
10 load_script_translation_file filter YES 1
11 mu_plugin_loaded action YES 1
12 network_plugin_loaded action YES 1
13 plugin_loaded action YES 1
14 pre_clear_scheduled_hook filter YES 1
15 pre_count_users filter YES 1
16 pre_get_ready_cron_jobs filter YES 1
17 pre_get_scheduled_event filter YES 1
18 pre_load_script_translations filter YES 1
19 pre_render_block filter YES 1
20 pre_reschedule_event filter YES 1
21 pre_schedule_event filter YES 1
22 pre_unschedule_event filter YES 1
23 pre_unschedule_hook filter YES 1
24 pre_wp_is_site_initialized filter YES 1
25 pre_wp_unique_post_slug filter YES 1
26 registered_taxonomy_for_object_type action YES 1
27 render_block_data filter YES 1
28 rest_post_search_query filter YES 1
29 unregistered_taxonomy_for_object_type action YES 1
30 users_pre_query filter YES 1
31 wp_delete_site action YES 1
32 wp_die_json_handler filter YES 1
33 wp_initialize_site action YES 1
34 wp_initialize_site_args filter YES 1
35 wp_insert_site action YES 1
36 wp_insert_term_duplicate_term_check filter YES 1
37 wp_kses_uri_attributes filter YES 1
38 wp_normalize_site_data filter YES 1
39 wp_targeted_link_rel filter YES 1
40 wp_uninitialize_site action YES 1
41 wp_update_php_url filter YES 1
42 wp_update_site action YES 1
43 wp_using_themes filter YES 1
44 wp_validate_site_data action YES 1
45 wp_validate_site_deletion action YES 1
46 x_redirect_by 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.