WP hooks navigation: Home/browse • Actions index • Filters index
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.
| Hook | Type | New? | Instances | ||
|---|---|---|---|---|---|
| 1 | activate_{$plugin} | note | action | YES | 1 |
| 2 | activity_box_end | action | YES | 1 | |
| 3 | add_attachment | action | YES | 1 | |
| 4 | add_category | action | no | 1 | |
| 5 | add_link | action | YES | 1 | |
| 6 | add_ping | filter | YES | 1 | |
| 7 | admin_footer | action | no | 2 | |
| 8 | admin_head | action | no | 1 | |
| 9 | admin_menu | action | no | 1 | |
| 10 | all_options | filter | no | 1 | |
| 11 | atom_entry | action | YES | 1 | |
| 12 | atom_head | action | YES | 1 | |
| 13 | atom_ns | action | YES | 1 | |
| 14 | attachment_icon | filter | YES | 1 | |
| 15 | attachment_innerHTML | filter | YES | 1 | |
| 16 | attachment_link | filter | YES | 1 | |
| 17 | attachment_max_dims | filter | YES | 1 | |
| 18 | author_email | filter | no | 1 | |
| 19 | author_feed_link | filter | no | 1 | |
| 20 | author_link | filter | no | 1 | |
| 21 | author_rewrite_rules | filter | no | 1 | |
| 22 | bloginfo | filter | no | 1 | |
| 23 | category_description | filter | no | 2 | |
| 24 | category_feed_link | filter | no | 1 | |
| 25 | category_link | filter | no | 1 | |
| 26 | category_rewrite_rules | filter | no | 1 | |
| 27 | category_save_pre | filter | no | 2 | |
| 28 | category_template | filter | no | 1 | |
| 29 | check_admin_referer | action | no | 1 | |
| 30 | check_passwords | action | no | 1 | |
| 31 | comments_number | filter | no | 1 | |
| 32 | comments_popup_template | filter | no | 1 | |
| 33 | comments_rewrite_rules | filter | no | 1 | |
| 34 | comments_template | filter | no | 1 | |
| 35 | comment_author | filter | no | 1 | |
| 36 | comment_author_rss | filter | no | 1 | |
| 37 | comment_closed | action | no | 1 | |
| 38 | comment_edit_pre | filter | no | 1 | |
| 39 | comment_email | filter | no | 1 | |
| 40 | comment_excerpt | filter | no | 1 | |
| 41 | comment_flood_trigger | action | no | 1 | |
| 42 | comment_form | action | no | 4 | |
| 43 | comment_id_not_found | action | no | 1 | |
| 44 | comment_moderation_subject | filter | no | 1 | |
| 45 | comment_moderation_text | filter | no | 1 | |
| 46 | comment_notification_headers | filter | no | 1 | |
| 47 | comment_notification_subject | filter | no | 1 | |
| 48 | comment_notification_text | filter | no | 1 | |
| 49 | comment_on_draft | action | no | 1 | |
| 50 | comment_post | action | no | 1 | |
| 51 | comment_save_pre | filter | no | 1 | |
| 52 | comment_status_pre | filter | YES | 2 | |
| 53 | comment_text | filter | no | 1 | |
| 54 | comment_text_rss | filter | no | 1 | |
| 55 | comment_url | filter | no | 1 | |
| 56 | content_edit_pre | filter | no | 1 | |
| 57 | content_save_pre | filter | no | 4 | |
| 58 | core_files_loaded | action | no | 1 | |
| 59 | create_category | action | YES | 1 | |
| 60 | create_user_query | filter | YES | 1 | |
| 61 | date_rewrite_rules | filter | no | 1 | |
| 62 | day_link | filter | no | 2 | |
| 63 | deactivate_{$plugin} | note | action | YES | 1 |
| 64 | default_content | filter | no | 1 | |
| 65 | default_excerpt | filter | no | 1 | |
| 66 | default_title | filter | no | 1 | |
| 67 | delete_attachment | action | YES | 1 | |
| 68 | delete_category | action | no | 1 | |
| 69 | delete_comment | action | no | 2 | |
| 70 | delete_link | action | YES | 1 | |
| 71 | delete_post | action | no | 1 | |
| 72 | delete_user | action | YES | 1 | |
| 73 | edit_attachment | action | YES | 1 | |
| 74 | edit_category | action | YES | 1 | |
| 75 | edit_comment | action | no | 1 | |
| 76 | edit_form_advanced | action | no | 1 | |
| 77 | edit_link | action | YES | 1 | |
| 78 | edit_page_form | action | no | 1 | |
| 79 | edit_post | action | no | 1 | |
| 80 | edit_user_profile | action | YES | 1 | |
| 81 | excerpt_edit_pre | filter | no | 1 | |
| 82 | excerpt_save_pre | filter | no | 2 | |
| 83 | feed_link | filter | no | 1 | |
| 84 | format_to_edit | filter | no | 1 | |
| 85 | format_to_post | filter | no | 1 | |
| 86 | generate_rewrite_rules | action | no | 1 | |
| 87 | get_comments_number | filter | no | 1 | |
| 88 | get_comment_author | filter | no | 1 | |
| 89 | get_comment_author_email | filter | no | 1 | |
| 90 | get_comment_author_IP | filter | no | 1 | |
| 91 | get_comment_author_link | filter | no | 1 | |
| 92 | get_comment_author_url | filter | no | 1 | |
| 93 | get_comment_author_url_link | filter | no | 1 | |
| 94 | get_comment_date | filter | no | 1 | |
| 95 | get_comment_excerpt | filter | no | 1 | |
| 96 | get_comment_ID | filter | no | 1 | |
| 97 | get_comment_text | filter | no | 1 | |
| 98 | get_comment_time | filter | no | 1 | |
| 99 | get_comment_type | filter | no | 1 | |
| 100 | get_editable_authors | filter | YES | 1 | |
| 101 | get_enclosed | filter | YES | 1 | |
| 102 | get_others_drafts | filter | YES | 1 | |
| 103 | get_pung | filter | YES | 1 | |
| 104 | get_the_excerpt | filter | no | 1 | |
| 105 | get_the_guid | filter | no | 1 | |
| 106 | get_the_modified_time | filter | YES | 2 | |
| 107 | get_the_time | filter | no | 2 | |
| 108 | get_to_ping | filter | YES | 1 | |
| 109 | get_users_drafts | filter | YES | 1 | |
| 110 | home_template | filter | no | 1 | |
| 111 | icon_dir | filter | YES | 1 | |
| 112 | icon_dir_uri | filter | YES | 1 | |
| 113 | init | action | no | 1 | |
| 114 | kubrick_header_color | filter | YES | 1 | |
| 115 | kubrick_header_display | filter | YES | 1 | |
| 116 | kubrick_header_image | filter | YES | 1 | |
| 117 | link_rating | filter | no | 1 | |
| 118 | list_cats | filter | no | 4 | |
| 119 | list_cats_exclusions | filter | no | 1 | |
| 120 | locale | filter | no | 1 | |
| 121 | loginout | filter | no | 1 | |
| 122 | loop_end | action | YES | 1 | |
| 123 | loop_start | action | YES | 1 | |
| 124 | lost_password | action | no | 1 | |
| 125 | manage_posts_columns | filter | no | 1 | |
| 126 | manage_posts_custom_column | action | no | 1 | |
| 127 | mce_browsers | filter | YES | 1 | |
| 128 | mce_buttons | filter | YES | 1 | |
| 129 | mce_buttons_2 | filter | YES | 1 | |
| 130 | mce_buttons_3 | filter | YES | 1 | |
| 131 | mce_options | action | YES | 1 | |
| 132 | mce_plugins | filter | YES | 1 | |
| 133 | mce_theme | filter | YES | 1 | |
| 134 | mce_valid_elements | filter | YES | 1 | |
| 135 | mod_rewrite_rules | filter | no | 1 | |
| 136 | month_link | filter | no | 2 | |
| 137 | name_save_pre | filter | no | 2 | |
| 138 | option_{$setting} | note | filter | no | 1 |
| 139 | page_link | filter | no | 1 | |
| 140 | page_rewrite_rules | filter | no | 1 | |
| 141 | page_template | filter | no | 1 | |
| 142 | parse_query | action | no | 2 | |
| 143 | password_reset | action | no | 1 | |
| 144 | personal_options_update | action | YES | 1 | |
| 145 | phone_content | filter | no | 1 | |
| 146 | pingback_post | action | no | 1 | |
| 147 | ping_status_pre | filter | YES | 2 | |
| 148 | plugins_loaded | action | no | 1 | |
| 149 | posts_groupby | filter | YES | 1 | |
| 150 | posts_join | filter | no | 1 | |
| 151 | posts_join_paged | filter | no | 1 | |
| 152 | posts_orderby | filter | no | 1 | |
| 153 | posts_request | filter | YES | 1 | |
| 154 | posts_where | filter | no | 1 | |
| 155 | posts_where_paged | filter | no | 1 | |
| 156 | post_comments_feed_link | filter | no | 1 | |
| 157 | post_link | filter | no | 2 | |
| 158 | post_mime_type_pre | filter | YES | 1 | |
| 159 | post_rewrite_rules | filter | no | 1 | |
| 160 | prepend_attachment | filter | YES | 1 | |
| 161 | preprocess_comment | filter | no | 1 | |
| 162 | pre_comment_approved | filter | no | 1 | |
| 163 | pre_comment_author_email | filter | no | 1 | |
| 164 | pre_comment_author_name | filter | no | 1 | |
| 165 | pre_comment_author_url | filter | no | 1 | |
| 166 | pre_comment_content | filter | no | 1 | |
| 167 | pre_comment_user_agent | filter | no | 1 | |
| 168 | pre_comment_user_domain | filter | no | 1 | |
| 169 | pre_comment_user_ip | filter | no | 1 | |
| 170 | pre_get_posts | action | YES | 1 | |
| 171 | pre_option_{$option->option_name} | note | filter | no | 1 |
| 172 | pre_ping | action | YES | 1 | |
| 173 | pre_user_id | filter | no | 1 | |
| 174 | private_to_published | action | no | 1 | |
| 175 | profile_personal_options | action | YES | 1 | |
| 176 | profile_update | action | YES | 1 | |
| 177 | publish_phone | action | no | 1 | |
| 178 | publish_post | action | no | 1 | |
| 179 | query_string | filter | no | 1 | |
| 180 | query_vars | filter | no | 1 | |
| 181 | rdf_header | action | YES | 1 | |
| 182 | rdf_item | action | YES | 1 | |
| 183 | rdf_ns | action | YES | 1 | |
| 184 | register | filter | no | 1 | |
| 185 | retreive_password | action | no | 1 | |
| 186 | retrieve_password | action | no | 1 | |
| 187 | rewrite_rules | filter | no | 1 | |
| 188 | rewrite_rules_array | filter | no | 1 | |
| 189 | richedit_pre | filter | YES | 2 | |
| 190 | role_has_cap | filter | YES | 1 | |
| 191 | root_rewrite_rules | filter | no | 1 | |
| 192 | rss2_head | action | YES | 1 | |
| 193 | rss2_item | action | YES | 1 | |
| 194 | rss2_ns | action | YES | 1 | |
| 195 | rss_head | action | YES | 1 | |
| 196 | rss_item | action | YES | 1 | |
| 197 | sanitize_title | filter | no | 1 | |
| 198 | save_post | action | no | 1 | |
| 199 | search_rewrite_rules | filter | no | 1 | |
| 200 | show_password_fields | filter | no | 3 | |
| 201 | show_user_profile | action | YES | 1 | |
| 202 | shutdown | action | no | 1 | |
| 203 | simple_edit_form | action | no | 1 | |
| 204 | single_post_title | filter | no | 2 | |
| 205 | status_save_pre | filter | no | 1 | |
| 206 | stylesheet | filter | no | 1 | |
| 207 | stylesheet_directory | filter | no | 1 | |
| 208 | stylesheet_directory_uri | filter | no | 1 | |
| 209 | stylesheet_uri | filter | no | 1 | |
| 210 | switch_theme | action | no | 3 | |
| 211 | template | filter | no | 1 | |
| 212 | template_directory | filter | no | 1 | |
| 213 | template_directory_uri | filter | no | 1 | |
| 214 | template_redirect | action | no | 1 | |
| 215 | theme_root | filter | no | 1 | |
| 216 | theme_root_uri | filter | no | 1 | |
| 217 | the_author | filter | YES | 1 | |
| 218 | the_author_email | filter | no | 1 | |
| 219 | the_category | filter | no | 2 | |
| 220 | the_category_rss | filter | no | 1 | |
| 221 | the_content | filter | no | 3 | |
| 222 | the_content_rss | filter | YES | 1 | |
| 223 | the_date | filter | no | 1 | |
| 224 | the_excerpt | filter | no | 2 | |
| 225 | the_excerpt_rss | filter | no | 1 | |
| 226 | the_modified_time | filter | YES | 1 | |
| 227 | the_permalink | filter | no | 2 | |
| 228 | the_posts | filter | no | 1 | |
| 229 | the_time | filter | no | 1 | |
| 230 | the_title | filter | no | 8 | |
| 231 | the_title_rss | filter | no | 2 | |
| 232 | the_weekday | filter | no | 1 | |
| 233 | the_weekday_date | filter | no | 1 | |
| 234 | thumbnail_filename | filter | YES | 1 | |
| 235 | tinymce_before_init | action | YES | 1 | |
| 236 | title_edit_pre | filter | no | 1 | |
| 237 | title_save_pre | filter | no | 2 | |
| 238 | trackback_post | action | no | 1 | |
| 239 | update_user_query | filter | YES | 1 | |
| 240 | uploading_iframe_src | filter | YES | 2 | |
| 241 | upload_dir | filter | YES | 1 | |
| 242 | upload_mimes | filter | YES | 1 | |
| 243 | user_has_cap | filter | YES | 1 | |
| 244 | user_register | action | no | 1 | |
| 245 | wp_authenticate | action | no | 1 | |
| 246 | wp_blacklist_check | action | no | 1 | |
| 247 | wp_footer | action | no | 1 | |
| 248 | wp_head | action | no | 1 | |
| 249 | wp_insert_post | action | YES | 1 | |
| 250 | wp_list_pages | filter | no | 1 | |
| 251 | wp_login | action | no | 1 | |
| 252 | wp_logout | action | no | 1 | |
| 253 | wp_meta | action | no | 1 | |
| 254 | wp_set_comment_status | action | no | 2 | |
| 255 | wp_title | filter | YES | 1 | |
| 256 | xmlrpc_methods | filter | no | 1 | |
| 257 | year_link | filter | no | 2 | |
| 258 | {$page_hook} | note | action | no | 1 |
| 259 | {$tag} | note | action | no | 1 |
| 260 | {$tag} | note | filter | no | 1 |
| 261 | {$type}_template | note | filter | no | 1 |
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.