Welcome, visitor! Log in
 

New plugin hooks in WordPress 4.3

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 add_user_role action YES 1
2 customize_nav_menu_available_items filter YES 1
3 customize_nav_menu_available_item_types filter YES 1
4 deprecated_constructor_run action YES 1
5 deprecated_constructor_trigger_error filter YES 1
6 editor_stylesheets filter YES 1
7 edit_comment_misc_actions filter YES 1
8 email_change_email filter YES 1
9 format_for_editor filter YES 1
10 get_default_comment_status filter YES 1
11 get_main_network_id filter YES 1
12 has_nav_menu filter YES 1
13 list_table_primary_column filter YES 1
14 nav_menu_items_{$post_type_name}_recent note filter YES 1
15 password_change_email filter YES 1
16 password_reset_expiration filter YES 1
17 remove_user_role action YES 1
18 send_email_change_email filter YES 1
19 send_password_change_email filter YES 1
20 site_icon_attachment_metadata filter YES 1
21 site_icon_image_sizes filter YES 1
22 site_icon_meta_tags filter YES 1
23 upgrader_package_options filter YES 1
24 wp_ajax_cropped_attachment_id filter YES 1
25 wp_ajax_cropped_attachment_metadata filter YES 1
26 wp_ajax_crop_image_pre_save action YES 1
27 wp_generate_tag_cloud_data filter YES 1
28 wp_get_attachment_image_src filter YES 1
29 wp_get_nav_menu_object filter YES 1
30 wp_refresh_nonces filter YES 1
31 wp_safe_redirect_fallback filter YES 1
32 wp_should_upgrade_global_tables filter YES 1
33 wp_unique_term_slug filter YES 1
34 wp_unique_term_slug_is_bad_slug 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.