New plugin hooks in WordPress 4.7

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 auth_{$object_type}_meta_{$meta_key} note filter YES 1
2 auth_{$object_type}_{$sub_type}_meta_{$meta_key} note filter YES 1
3 change_locale action YES 1
4 customize_changeset_save_data filter YES 1
5 customize_validate_{$setting->id} note filter YES 1
6 do_shortcode_tag filter YES 1
7 fallback_intermediate_image_sizes filter YES 1
8 get_available_languages filter YES 1
9 get_theme_starter_content filter YES 1
10 handle_bulk_actions->id} filter YES 1
11 handle_network_bulk_actions->id} filter YES 1
12 header_video_settings filter YES 1
13 is_header_video_active filter YES 1
14 parent_theme_file_path filter YES 1
15 parent_theme_file_uri filter YES 1
16 post_password_required filter YES 1
17 pre_do_shortcode_tag filter YES 1
18 pre_trackback_post action YES 1
19 register_setting_args filter YES 1
20 requests-{$hook} note action YES 1
21 restore_previous_locale action YES 1
22 rest_allow_anonymous_comments filter YES 1
23 rest_avatar_sizes filter YES 1
24 rest_comment_collection_params filter YES 1
25 rest_comment_query filter YES 1
26 rest_comment_trashable filter YES 1
27 rest_delete_comment action YES 1
28 rest_delete_revision action YES 1
29 rest_delete_user action YES 1
30 rest_delete_{$this->post_type} note action YES 1
31 rest_delete_{$this->taxonomy} note action YES 1
32 rest_insert_attachment action YES 1
33 rest_insert_comment action YES 1
34 rest_insert_user action YES 1
35 rest_insert_{$this->post_type} note action YES 1
36 rest_insert_{$this->taxonomy} note action YES 1
37 rest_prepare_attachment filter YES 1
38 rest_prepare_comment filter YES 1
39 rest_prepare_post_type filter YES 1
40 rest_prepare_revision filter YES 1
41 rest_prepare_status filter YES 1
42 rest_prepare_taxonomy filter YES 1
43 rest_prepare_user filter YES 1
44 rest_prepare_{$this->post_type} note filter YES 1
45 rest_prepare_{$this->taxonomy} note filter YES 1
46 rest_preprocess_comment filter YES 1
47 rest_pre_get_setting filter YES 1
48 rest_pre_insert_comment filter YES 1
49 rest_pre_insert_user filter YES 1
50 rest_pre_insert_{$this->post_type} note filter YES 1
51 rest_pre_insert_{$this->taxonomy} note filter YES 1
52 rest_pre_update_setting filter YES 1
53 rest_query_var-{$key} note filter YES 1
54 rest_request_after_callbacks filter YES 1
55 rest_request_before_callbacks filter YES 1
56 rest_user_collection_params filter YES 1
57 rest_user_query filter YES 1
58 rest_{$this->post_type}_collection_params note filter YES 1
59 rest_{$this->post_type}_query note filter YES 1
60 rest_{$this->post_type}_trashable note filter YES 1
61 rest_{$this->taxonomy}_collection_params note filter YES 1
62 rest_{$this->taxonomy}_query note filter YES 1
63 sanitize_textarea_field filter YES 1
64 smilies filter YES 1
65 strip_shortcodes_tagnames filter YES 1
66 switch_locale action YES 1
67 theme_file_path filter YES 1
68 theme_file_uri filter YES 1
69 theme_{$post_type}_templates note filter YES 1
70 twentyseventeen_content_width filter YES 1
71 twentyseventeen_custom_colors_css filter YES 1
72 twentyseventeen_custom_colors_saturation filter YES 1
73 twentyseventeen_custom_header_args filter YES 1
74 twentyseventeen_front_page_sections filter YES 1
75 twentyseventeen_social_links_icons filter YES 1
76 update_custom_css_data filter YES 1
77 wp_doing_ajax filter YES 1
78 wp_get_custom_css filter YES 1
79 wp_insert_term_data filter YES 1
80 wp_is_comment_flood filter YES 1
81 wp_query_search_exclusion_prefix filter YES 1
82 wp_roles_init action YES 1
83 wp_update_comment_data filter YES 1
84 wp_update_term_data filter YES 1
85 {$args[0]} note filter YES 1
86 {$args} note action YES 1
87 {$type}_template_hierarchy note filter YES 1
88 {$value} 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.