New plugin hooks in WordPress 4.5

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 clean_comment_cache action YES 1
2 comments_template_query_args filter YES 1
3 customize_dynamic_partial_args filter YES 1
4 customize_dynamic_partial_class filter YES 1
5 customize_nav_menu_searched_items filter YES 1
6 customize_partial_render filter YES 1
7 customize_partial_render_{$partial->id} note filter YES 1
8 customize_previewable_devices filter YES 1
9 customize_render_partials_after action YES 1
10 customize_render_partials_before action YES 1
11 customize_render_partials_response filter YES 1
12 get_custom_logo filter YES 1
13 image_strip_meta filter YES 1
14 load-edit-tags-php action YES 1
15 metadata_lazyloader_queued_objects action YES 1
16 network_allowed_themes filter YES 1
17 network_site_new_form action YES 1
18 network_user_new_form action YES 1
19 press_this_save_post filter YES 1
20 pre_handle_404 filter YES 1
21 pre_network_site_new_created_user action YES 1
22 pre_uninstall_plugin action YES 1
23 pre_wp_update_comment_count_now filter YES 1
24 rest_request_from_url filter YES 1
25 rest_response_link_curies filter YES 1
26 site_allowed_themes filter YES 1
27 unregistered_post_type action YES 1
28 unregistered_taxonomy action YES 1
29 wp_calculate_image_srcset_meta filter YES 1
30 wp_get_comment_fields_max_lengths filter YES 1
31 wp_unique_filename filter YES 1
32 {$taxonomy}_term_edit_form_top note action 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.