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.
| Hook | Type | New? | File | ||
|---|---|---|---|---|---|
| 1 | add_category | action | YES | /.../categories.php | |
| 2 | admin_footer | action | no | /.../admin-footer.php | |
| 3 | admin_footer | action | no | /.../bookmarklet.php | |
| 4 | admin_head | action | no | /.../admin-header.php | |
| 5 | admin_menu | action | no | /.../menu.php | |
| 6 | all_options | filter | no | /.../functions.php | |
| 7 | author_email | filter | no | /.../comment-functions.php | |
| 8 | author_feed_link | filter | YES | /.../feed-functions.php | |
| 9 | author_link | filter | no | /.../template-functions-author.php | |
| 10 | author_rewrite_rules | filter | no | /.../classes.php | |
| 11 | bloginfo | filter | no | /.../template-functions-general.php | |
| 12 | category_description | filter | no | /.../template-functions-category.php | |
| 13 | category_feed_link | filter | YES | /.../feed-functions.php | |
| 14 | category_link | filter | no | /.../template-functions-category.php | |
| 15 | category_rewrite_rules | filter | no | /.../classes.php | |
| 16 | category_save_pre | filter | no | /.../post.php | |
| 17 | category_template | filter | no | /.../functions.php | |
| 18 | check_admin_referer | action | YES | /.../admin-functions.php | |
| 19 | check_passwords | action | YES | /.../profile.php | |
| 20 | check_passwords | action | no | /.../user-edit.php | |
| 21 | check_passwords | action | no | /.../users.php | |
| 22 | comments_number | filter | no | /.../comment-functions.php | |
| 23 | comments_popup_template | filter | no | /.../functions.php | |
| 24 | comments_rewrite_rules | filter | no | /.../classes.php | |
| 25 | comments_template | filter | YES | /.../comment-functions.php | |
| 26 | comment_author | filter | no | /.../comment-functions.php | |
| 27 | comment_author_rss | filter | no | /.../feed-functions.php | |
| 28 | comment_closed | action | no | wp-comments-post.php | |
| 29 | comment_content_presave | filter | no | /.../functions-post.php | |
| 30 | comment_edit_pre | filter | no | /.../post.php | |
| 31 | comment_email | filter | no | /.../comment-functions.php | |
| 32 | comment_excerpt | filter | no | /.../comment-functions.php | |
| 33 | comment_flood_trigger | action | no | /.../functions-post.php | |
| 34 | comment_form | action | no | /.../comments-popup.php | |
| 35 | comment_form | action | no | /.../comments.php | |
| 36 | comment_form | action | no | /.../comments-popup.php | |
| 37 | comment_form | action | no | /.../comments.php | |
| 38 | comment_id_not_found | action | no | wp-comments-post.php | |
| 39 | comment_moderation_subject | filter | YES | /.../pluggable-functions.php | |
| 40 | comment_moderation_text | filter | YES | /.../pluggable-functions.php | |
| 41 | comment_notification_headers | filter | YES | /.../pluggable-functions.php | |
| 42 | comment_notification_subject | filter | YES | /.../pluggable-functions.php | |
| 43 | comment_notification_text | filter | YES | /.../pluggable-functions.php | |
| 44 | comment_on_draft | action | YES | wp-comments-post.php | |
| 45 | comment_post | action | no | /.../functions-post.php | |
| 46 | comment_save_pre | filter | no | /.../post.php | |
| 47 | comment_text | filter | no | /.../comment-functions.php | |
| 48 | comment_text_rss | filter | no | /.../feed-functions.php | |
| 49 | comment_url | filter | no | /.../comment-functions.php | |
| 50 | content_edit_pre | filter | no | /.../post.php | |
| 51 | content_save_pre | filter | no | xmlrpc.php | |
| 52 | content_save_pre | filter | no | /.../post.php | |
| 53 | core_files_loaded | action | no | wp-settings.php | |
| 54 | date_rewrite_rules | filter | no | /.../classes.php | |
| 55 | day_link | filter | no | /.../template-functions-links.php | |
| 56 | default_content | filter | no | /.../post.php | |
| 57 | default_excerpt | filter | no | /.../post.php | |
| 58 | default_title | filter | no | /.../post.php | |
| 59 | delete_category | action | YES | /.../categories.php | |
| 60 | delete_comment | action | no | /.../post.php | |
| 61 | delete_post | action | no | /.../post.php | |
| 62 | edit_comment | action | no | /.../post.php | |
| 63 | edit_form_advanced | action | no | /.../edit-form-advanced.php | |
| 64 | edit_page_form | action | no | /.../edit-page-form.php | |
| 65 | edit_post | action | no | xmlrpc.php | |
| 66 | edit_post | action | no | /.../post.php | |
| 67 | edit_post | action | no | /.../functions-post.php | |
| 68 | excerpt_edit_pre | filter | no | /.../post.php | |
| 69 | excerpt_save_pre | filter | no | /.../post.php | |
| 70 | feed_link | filter | no | /.../template-functions-links.php | |
| 71 | format_to_edit | filter | no | /.../functions-formatting.php | |
| 72 | format_to_post | filter | no | /.../functions-formatting.php | |
| 73 | generate_rewrite_rules | action | no | /.../classes.php | |
| 74 | get_comments_number | filter | no | /.../comment-functions.php | |
| 75 | get_comment_author | filter | no | /.../comment-functions.php | |
| 76 | get_comment_author_email | filter | no | /.../comment-functions.php | |
| 77 | get_comment_author_IP | filter | no | /.../comment-functions.php | |
| 78 | get_comment_author_link | filter | no | /.../comment-functions.php | |
| 79 | get_comment_author_url | filter | no | /.../comment-functions.php | |
| 80 | get_comment_author_url_link | filter | no | /.../comment-functions.php | |
| 81 | get_comment_date | filter | no | /.../comment-functions.php | |
| 82 | get_comment_excerpt | filter | no | /.../comment-functions.php | |
| 83 | get_comment_ID | filter | no | /.../comment-functions.php | |
| 84 | get_comment_text | filter | no | /.../comment-functions.php | |
| 85 | get_comment_time | filter | no | /.../comment-functions.php | |
| 86 | get_comment_type | filter | no | /.../comment-functions.php | |
| 87 | get_the_excerpt | filter | no | /.../template-functions-post.php | |
| 88 | get_the_guid | filter | no | /.../template-functions-post.php | |
| 89 | get_the_time | filter | no | /.../template-functions-general.php | |
| 90 | home_template | filter | no | /.../functions.php | |
| 91 | init | action | no | wp-settings.php | |
| 92 | link_rating | filter | no | /.../links.php | |
| 93 | list_cats | filter | no | /.../template-functions-category.php | |
| 94 | list_cats_exclusions | filter | YES | /.../template-functions-category.php | |
| 95 | locale | filter | no | /.../wp-l10n.php | |
| 96 | loginout | filter | no | /.../template-functions-general.php | |
| 97 | lost_password | action | YES | wp-login.php | |
| 98 | manage_posts_columns | filter | no | /.../edit.php | |
| 99 | manage_posts_custom_column | action | no | /.../edit.php | |
| 100 | mod_rewrite_rules | filter | no | /.../classes.php | |
| 101 | month_link | filter | no | /.../template-functions-links.php | |
| 102 | name_save_pre | filter | no | /.../post.php | |
| 103 | option_{$setting} | note | filter | no | /.../functions.php |
| 104 | page_link | filter | no | /.../template-functions-links.php | |
| 105 | page_rewrite_rules | filter | no | /.../classes.php | |
| 106 | page_template | filter | no | /.../functions.php | |
| 107 | parse_query | action | no | /.../classes.php | |
| 108 | password_reset | action | no | wp-login.php | |
| 109 | phone_content | filter | no | wp-mail.php | |
| 110 | pingback_post | action | no | xmlrpc.php | |
| 111 | plugins_loaded | action | no | wp-settings.php | |
| 112 | posts_join | filter | no | /.../classes.php | |
| 113 | posts_join_paged | filter | no | /.../classes.php | |
| 114 | posts_orderby | filter | YES | /.../classes.php | |
| 115 | posts_where | filter | no | /.../classes.php | |
| 116 | posts_where_paged | filter | no | /.../classes.php | |
| 117 | post_comments_feed_link | filter | YES | /.../feed-functions.php | |
| 118 | post_comment_text | filter | no | /.../functions-post.php | |
| 119 | post_link | filter | no | /.../template-functions-links.php | |
| 120 | post_rewrite_rules | filter | no | /.../classes.php | |
| 121 | preprocess_comment | filter | no | /.../functions-post.php | |
| 122 | pre_comment_approved | filter | no | /.../functions-post.php | |
| 123 | pre_comment_author_email | filter | no | /.../functions-post.php | |
| 124 | pre_comment_author_name | filter | no | /.../functions-post.php | |
| 125 | pre_comment_author_url | filter | no | /.../functions-post.php | |
| 126 | pre_comment_content | filter | no | /.../functions-post.php | |
| 127 | pre_comment_user_agent | filter | no | /.../functions-post.php | |
| 128 | pre_comment_user_domain | filter | no | /.../functions-post.php | |
| 129 | pre_comment_user_ip | filter | no | /.../functions-post.php | |
| 130 | pre_option_{$option->option_name} | note | filter | no | /.../functions.php |
| 131 | pre_user_id | filter | no | /.../functions-post.php | |
| 132 | private_to_published | action | no | /.../post.php | |
| 133 | publish_phone | action | no | wp-mail.php | |
| 134 | publish_post | action | no | xmlrpc.php | |
| 135 | publish_post | action | no | /.../post.php | |
| 136 | publish_post | action | no | /.../functions-post.php | |
| 137 | query_string | filter | no | wp-blog-header.php | |
| 138 | query_vars | filter | no | wp-blog-header.php | |
| 139 | register | filter | no | /.../template-functions-general.php | |
| 140 | retreive_password | action | no | wp-login.php | |
| 141 | retrieve_password | action | YES | wp-login.php | |
| 142 | rewrite_rules | filter | no | /.../classes.php | |
| 143 | rewrite_rules_array | filter | no | /.../classes.php | |
| 144 | root_rewrite_rules | filter | no | /.../classes.php | |
| 145 | sanitize_title | filter | no | /.../functions-formatting.php | |
| 146 | save_post | action | no | /.../post.php | |
| 147 | search_rewrite_rules | filter | no | /.../classes.php | |
| 148 | show_password_fields | filter | YES | /.../profile.php | |
| 149 | show_password_fields | filter | no | /.../user-edit.php | |
| 150 | show_password_fields | filter | no | /.../users.php | |
| 151 | shutdown | action | no | wp-settings.php | |
| 152 | simple_edit_form | action | no | /.../edit-form.php | |
| 153 | single_post_title | filter | no | /.../template-functions-general.php | |
| 154 | status_save_pre | filter | no | /.../post.php | |
| 155 | stylesheet | filter | no | /.../functions.php | |
| 156 | stylesheet_directory | filter | no | /.../functions.php | |
| 157 | stylesheet_directory_uri | filter | no | /.../functions.php | |
| 158 | stylesheet_uri | filter | no | /.../functions.php | |
| 159 | switch_theme | action | no | /.../admin-functions.php | |
| 160 | switch_theme | action | no | /.../themes.php | |
| 161 | template | filter | no | /.../functions.php | |
| 162 | template_directory | filter | no | /.../functions.php | |
| 163 | template_directory_uri | filter | no | /.../functions.php | |
| 164 | template_redirect | action | no | wp-blog-header.php | |
| 165 | theme_root | filter | no | /.../functions.php | |
| 166 | theme_root_uri | filter | no | /.../functions.php | |
| 167 | the_author_email | filter | no | /.../template-functions-author.php | |
| 168 | the_category | filter | no | /.../template-functions-category.php | |
| 169 | the_category_rss | filter | no | /.../feed-functions.php | |
| 170 | the_content | filter | no | /.../feed-functions.php | |
| 171 | the_content | filter | no | /.../functions-formatting.php | |
| 172 | the_content | filter | no | /.../functions-post.php | |
| 173 | the_content | filter | no | /.../template-functions-post.php | |
| 174 | the_content | filter | no | /.../post.php | |
| 175 | the_date | filter | no | /.../template-functions-general.php | |
| 176 | the_excerpt | filter | no | /.../functions-post.php | |
| 177 | the_excerpt | filter | no | /.../template-functions-post.php | |
| 178 | the_excerpt_rss | filter | no | /.../feed-functions.php | |
| 179 | the_permalink | filter | no | /.../template-functions-links.php | |
| 180 | the_posts | filter | no | /.../classes.php | |
| 181 | the_time | filter | no | /.../template-functions-general.php | |
| 182 | the_title | filter | no | /.../feed-functions.php | |
| 183 | the_title | filter | no | /.../functions-post.php | |
| 184 | the_title | filter | no | /.../template-functions-links.php | |
| 185 | the_title | filter | no | /.../template-functions-post.php | |
| 186 | the_title | filter | no | wp-commentsrss2.php | |
| 187 | the_title_rss | filter | no | /.../feed-functions.php | |
| 188 | the_title_rss | filter | no | wp-commentsrss2.php | |
| 189 | the_weekday | filter | no | /.../template-functions-general.php | |
| 190 | the_weekday_date | filter | no | /.../template-functions-general.php | |
| 191 | title_edit_pre | filter | no | /.../post.php | |
| 192 | title_save_pre | filter | no | /.../post.php | |
| 193 | trackback_post | action | no | wp-trackback.php | |
| 194 | user_register | action | no | wp-register.php | |
| 195 | user_register | action | no | /.../users.php | |
| 196 | wp_authenticate | action | YES | wp-login.php | |
| 197 | wp_blacklist_check | action | no | /.../functions-post.php | |
| 198 | wp_footer | action | no | /.../functions.php | |
| 199 | wp_head | action | no | /.../functions.php | |
| 200 | wp_list_pages | filter | YES | /.../template-functions-post.php | |
| 201 | wp_login | action | no | wp-login.php | |
| 202 | wp_logout | action | no | wp-login.php | |
| 203 | wp_meta | action | no | /.../template-functions-general.php | |
| 204 | wp_set_comment_status | action | no | /.../comment-functions.php | |
| 205 | xmlrpc_methods | filter | no | xmlrpc.php | |
| 206 | year_link | filter | no | /.../template-functions-links.php | |
| 207 | {$page_hook} | note | action | no | /.../admin.php |
| 208 | {$type}_template | note | filter | no | /.../functions.php |
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.