New hooks in WP 2.7
Important! Some hooks get applied in multiple files. If you are trying to figure out what a specific 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? | File | ||
|---|---|---|---|---|---|
| 1 | add_menu_classes | filter | YES | /.../menu.php | |
| 2 | add_tag_form | action | YES | /.../edit-tags.php | |
| 3 | admin_comment_types_dropdown | filter | YES | /.../edit-comments.php | |
| 4 | admin_head-{$hook_suffix} | note | action | YES | /.../admin-header.php |
| 5 | admin_print_scripts-{$hook_suffix} | note | action | YES | /.../admin-header.php |
| 6 | admin_print_styles-{$hook_suffix} | note | action | YES | /.../admin-header.php |
| 7 | after_plugin_row_{$plugin_file} | note | action | YES | /.../plugins.php |
| 8 | allow_password_reset | filter | YES | wp-login.php | |
| 9 | auth_cookie_bad_hash | action | YES | /.../pluggable.php | |
| 10 | auth_cookie_bad_username | action | YES | /.../pluggable.php | |
| 11 | auth_cookie_expired | action | YES | /.../pluggable.php | |
| 12 | auth_cookie_malformed | action | YES | /.../pluggable.php | |
| 13 | auth_cookie_valid | action | YES | /.../pluggable.php | |
| 14 | cancel_comment_reply_link | filter | YES | /.../comment-template.php | |
| 15 | clear_auth_cookie | action | YES | /.../pluggable.php | |
| 16 | comment_class | filter | YES | /.../comment-template.php | |
| 17 | comment_reply_link | filter | YES | /.../comment-template.php | |
| 18 | comment_{$new_status}_{$comment->comment_type} | note | action | YES | /.../comment.php |
| 19 | comment_{$old_status}_to_{$new_status} | note | action | YES | /.../comment.php |
| 20 | contextual_help | filter | YES | /.../template.php | |
| 21 | contextual_help_list | filter | YES | /.../template.php | |
| 22 | date_formats | filter | YES | /.../options-general.php | |
| 23 | disable_captions | filter | YES | /.../media.php | |
| 24 | edit_bookmark_link | filter | YES | /.../link-template.php | |
| 25 | edit_tag_link | filter | YES | /.../link-template.php | |
| 26 | edit_user_profile_update | action | YES | /.../user-edit.php | |
| 27 | excerpt_length | filter | YES | /.../formatting.php | |
| 28 | favorite_actions | filter | YES | /.../template.php | |
| 29 | get_categories_taxonomy | filter | YES | /.../category.php | |
| 30 | get_comments_pagenum_link | filter | YES | /.../link-template.php | |
| 31 | get_edit_bookmark_link | filter | YES | /.../link-template.php | |
| 32 | get_edit_tag_link | filter | YES | /.../link-template.php | |
| 33 | get_search_form | action | YES | /.../general-template.php | |
| 34 | get_usernumposts | filter | YES | /.../user.php | |
| 35 | http_headers_useragent | filter | YES | /.../http.php | |
| 36 | http_request_args | filter | YES | /.../http.php | |
| 37 | http_request_default_port | filter | YES | /.../http.php | |
| 38 | http_request_port | filter | YES | /.../http.php | |
| 39 | http_request_redirection_count | filter | YES | /.../http.php | |
| 40 | http_request_timeout | filter | YES | /.../http.php | |
| 41 | http_request_version | filter | YES | /.../http.php | |
| 42 | install_feedback | filter | YES | /.../plugin-install.php | |
| 43 | install_plugins_nonmenu_tabs | filter | YES | /.../plugin-install.php | |
| 44 | install_plugins_pre_{$tab} | note | action | YES | /.../plugin-install.php |
| 45 | install_plugins_table_header | action | YES | /.../plugin-install.php | |
| 46 | install_plugins_tabs | filter | YES | /.../plugin-install.php | |
| 47 | install_plugins_{$tab} | note | action | YES | /.../plugin-install.php |
| 48 | install_plugin_complete_actions | filter | YES | /.../plugin-install.php | |
| 49 | login_redirect | filter | YES | wp-login.php | |
| 50 | manage_{$page}_columns | note | filter | YES | /.../template.php |
| 51 | next_comments_link_attributes | filter | YES | /.../link-template.php | |
| 52 | next_posts_link_attributes | filter | YES | /.../link-template.php | |
| 53 | personal_options | action | YES | /.../user-edit.php | |
| 54 | plugins_api | filter | YES | /.../plugin-install.php | |
| 55 | plugins_api_args | filter | YES | /.../plugin-install.php | |
| 56 | plugins_api_result | filter | YES | /.../plugin-install.php | |
| 57 | plugin_action_links_{$plugin_file} | note | filter | YES | /.../plugins.php |
| 58 | plugin_install_action_links | filter | YES | /.../plugin-install.php | |
| 59 | post_class | filter | YES | /.../post-template.php | |
| 60 | post_comments_link | filter | YES | /.../comment-template.php | |
| 61 | post_submitbox_start | action | YES | /.../edit-form-advanced.php | |
| 62 | previous_comments_link_attributes | filter | YES | /.../link-template.php | |
| 63 | previous_posts_link_attributes | filter | YES | /.../link-template.php | |
| 64 | quick_edit_custom_box | action | YES | /.../template.php | |
| 65 | quick_edit_dropdown_pages_args | filter | YES | /.../template.php | |
| 66 | right_now_table_end | action | YES | /.../dashboard.php | |
| 67 | rss_update_frequency | filter | YES | /.../feed-rss2-comments.php | |
| 68 | rss_update_period | filter | YES | /.../feed-rss2-comments.php | |
| 69 | screen_meta_screen | filter | YES | /.../template.php | |
| 70 | sidebars_widgets | filter | YES | /.../widgets.php | |
| 71 | site_url | filter | YES | /.../link-template.php | |
| 72 | tagsperpage | filter | YES | /.../edit-tags.php | |
| 73 | teeny_mce_before_init | filter | YES | /.../post.php | |
| 74 | teeny_mce_buttons | filter | YES | /.../post.php | |
| 75 | teeny_mce_plugins | filter | YES | /.../post.php | |
| 76 | the_password_form | filter | YES | /.../post-template.php | |
| 77 | the_preview | filter | YES | /.../query.php | |
| 78 | thread_comments_depth_max | filter | YES | /.../options-discussion.php | |
| 79 | time_formats | filter | YES | /.../options-general.php | |
| 80 | transition_comment_status | action | YES | /.../comment.php | |
| 81 | uninstall_{$file} | note | action | YES | /.../plugin.php |
| 82 | update_plugin_complete_actions | filter | YES | /.../update.php | |
| 83 | use_curl_transport | filter | YES | /.../http.php | |
| 84 | use_fopen_transport | filter | YES | /.../http.php | |
| 85 | use_fsockopen_transport | filter | YES | /.../http.php | |
| 86 | use_http_extension_transport | filter | YES | /.../http.php | |
| 87 | use_streams_transport | filter | YES | /.../http.php | |
| 88 | validate_current_theme | filter | YES | /.../theme.php | |
| 89 | whitelist_options | filter | YES | /.../options.php | |
| 90 | wp_ajax_{$_GET[action]} | note | action | YES | /.../admin-ajax.php |
| 91 | wp_comment_reply | filter | YES | /.../template.php | |
| 92 | wp_count_comments | filter | YES | /.../comment.php | |
| 93 | wp_get_attachment_link | filter | YES | /.../post-template.php | |
| 94 | wp_insert_post_data | filter | YES | /.../post.php | |
| 95 | wp_page_menu | filter | YES | /.../post-template.php | |
| 96 | wp_page_menu_args | filter | YES | /.../post-template.php | |
| 97 | xmlrpc_allow_anonymous_comments | filter | YES | xmlrpc.php | |
| 98 | {$bulk}?bulk_edit_custom_box:quick_edit_custom_box | note | action | YES | /.../template.php |
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.