Welcome, visitor! Log in
 

New plugin hooks in WordPress 4.0

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 admin_post action YES 1
2 admin_post_nopriv action YES 1
3 admin_post_nopriv_{$action} note action YES 1
4 admin_post_{$action} note action YES 1
5 akismet_get_api_key filter YES 1
6 akismet_spam_check_warning_link_text filter YES 1
7 async_update_translation filter YES 1
8 attach_session_information filter YES 1
9 auth_cookie_bad_session_token action YES 1
10 customize_control_active filter YES 1
11 customize_render_panel action YES 1
12 customize_render_panel_{$this->id} note action YES 1
13 delete_user_form action YES 1
14 edit_{$post_type}_per_page note filter YES 1
15 human_time_diff filter YES 1
16 oembed_remote_get_args filter YES 1
17 oembed_ttl filter YES 1
18 pre_get_users action YES 1
19 rss_tag_pre action YES 1
20 run_wptexturize filter YES 1
21 session_token_manager filter YES 1
22 term_search_min_chars filter YES 1
23 translations_api filter YES 1
24 translations_api_result filter YES 1
25 wp_editor_expand filter YES 1
26 wp_editor_settings filter YES 1
27 wp_embed_handler_youtube filter YES 1
28 wp_list_comments_args filter YES 1
29 wp_spaces_regexp filter YES 1
30 wp_title_parts filter YES 1
31 wxr_export_skip_commentmeta filter YES 1
32 xmlrpc_element_limit filter YES 1
33 {$action}_prefilter 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.