All hooks in WP 2.6
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 | ${field_no_prefix}_edit_pre | note | filter | no | /.../post.php |
| 2 | ${field_no_prefix}_save_pre | note | filter | no | /.../post.php |
| 3 | ${field}_pre | note | filter | no | /.../post.php |
| 4 | ${new_status}_$post->post_type | note | action | no | /.../post.php |
| 5 | ${old_status}_to_$new_status | note | action | no | /.../post.php |
| 6 | ${taxonomy}_$field | note | filter | no | /.../taxonomy.php |
| 7 | ${taxonomy}_${field}_rss | note | filter | no | /.../taxonomy.php |
| 8 | activate_ | note | action | no | /.../plugin.php |
| 9 | activity_box_end | action | no | /.../index.php | |
| 10 | add_attachment | action | no | /.../post.php | |
| 11 | add_category_form_pre | action | no | /.../edit-category-form.php | |
| 12 | add_link | action | no | /.../bookmark.php | |
| 13 | add_link_category_form_pre | action | no | /.../edit-link-category-form.php | |
| 14 | add_option_{$name} | note | action | no | /.../functions.php |
| 15 | add_ping | filter | no | /.../post.php | |
| 16 | add_tag_form_pre | action | no | /.../edit-tag-form.php | |
| 17 | adminmenu | action | no | /.../menu-header.php | |
| 18 | admin_action_ | note | action | YES | /.../admin.php |
| 19 | admin_body_class | filter | no | /.../admin-header.php | |
| 20 | admin_footer | action | no | /.../admin-footer.php | |
| 21 | admin_footer | action | no | /.../press-this.php | |
| 22 | admin_head | action | no | /.../admin-header.php | |
| 23 | admin_head | action | no | /.../press-this.php | |
| 24 | admin_head | action | no | /.../media.php | |
| 25 | admin_head$hook_suffix | note | action | YES | /.../admin-header.php |
| 26 | admin_head-XXX | action | YES | /.../admin-header.php | |
| 27 | admin_head_{$content_func} | note | action | no | /.../media.php |
| 28 | admin_init | action | no | /.../admin-post.php | |
| 29 | admin_init | action | no | /.../admin.php | |
| 30 | admin_menu | action | no | /.../menu.php | |
| 31 | admin_notices | action | no | /.../menu-header.php | |
| 32 | admin_page_access_denied | action | no | /.../menu.php | |
| 33 | admin_print_scripts | action | no | /.../admin-header.php | |
| 34 | admin_print_scripts | action | no | /.../press-this.php | |
| 35 | admin_print_scripts | action | no | /.../media.php | |
| 36 | admin_print_scripts$hook_suffix | note | action | YES | /.../admin-header.php |
| 37 | admin_print_scripts-XXX | action | YES | /.../admin-header.php | |
| 38 | admin_print_styles | action | YES | /.../admin-header.php | |
| 39 | admin_print_styles | action | no | /.../press-this.php | |
| 40 | admin_print_styles | action | no | /.../media.php | |
| 41 | admin_print_styles$hook_suffix | note | action | YES | /.../admin-header.php |
| 42 | admin_print_styles-XXX | action | YES | /.../admin-header.php | |
| 43 | admin_xml_ns | action | no | /.../admin-header.php | |
| 44 | admin_xml_ns | action | no | /.../press-this.php | |
| 45 | admin_xml_ns | action | no | /.../update.php | |
| 46 | admin_xml_ns | action | no | /.../media.php | |
| 47 | after_plugin_row | action | no | /.../plugins.php | |
| 48 | akismet_spam_caught | action | no | /.../akismet.php | |
| 49 | akismet_tabs | action | no | /.../akismet.php | |
| 50 | allowed_redirect_hosts | filter | no | /.../pluggable.php | |
| 51 | all_options | filter | no | /.../functions.php | |
| 52 | app_publish_post | action | no | /.../post.php | |
| 53 | async_upload_{$type} | note | filter | no | /.../async-upload.php |
| 54 | atom_enclosure | filter | no | /.../feed.php | |
| 55 | atom_entry | action | no | /.../feed-atom.php | |
| 56 | atom_head | action | no | /.../feed-atom.php | |
| 57 | atom_ns | action | no | /.../feed-atom-comments.php | |
| 58 | atom_ns | action | no | /.../feed-atom.php | |
| 59 | atom_service_url | filter | no | xmlrpc.php | |
| 60 | attachment_fields_to_edit | filter | no | /.../media.php | |
| 61 | attachment_fields_to_save | filter | no | /.../media.php | |
| 62 | attachment_icon | filter | no | /.../post-template.php | |
| 63 | attachment_innerHTML | filter | no | /.../post-template.php | |
| 64 | attachment_link | filter | no | /.../link-template.php | |
| 65 | attachment_max_dims | filter | no | /.../post-template.php | |
| 66 | attribute_escape | filter | no | /.../formatting.php | |
| 67 | audio_upload_iframe_src | filter | no | /.../media.php | |
| 68 | author_email | filter | no | /.../comment-template.php | |
| 69 | author_feed_link | filter | no | /.../link-template.php | |
| 70 | author_link | filter | no | /.../author-template.php | |
| 71 | author_rewrite_rules | filter | no | /.../rewrite.php | |
| 72 | auth_cookie | filter | no | /.../pluggable.php | |
| 73 | avatar_defaults | filter | YES | /.../options-discussion.php | |
| 74 | bloginfo | filter | no | /.../general-template.php | |
| 75 | bloginfo_rss | filter | no | /.../feed.php | |
| 76 | bloginfo_url | filter | no | /.../general-template.php | |
| 77 | blog_privacy_selector | action | no | /.../options-privacy.php | |
| 78 | category_description | filter | no | /.../classes.php | |
| 79 | category_feed_link | filter | no | /.../link-template.php | |
| 80 | category_link | filter | no | /.../category-template.php | |
| 81 | category_rewrite_rules | filter | no | /.../rewrite.php | |
| 82 | category_template | filter | no | /.../theme.php | |
| 83 | cat_row | filter | no | /.../template.php | |
| 84 | cat_rows | filter | no | /.../template.php | |
| 85 | cat_rows | filter | no | /.../edit-link-categories.php | |
| 86 | check_admin_referer | action | no | /.../pluggable.php | |
| 87 | check_ajax_referer | action | no | /.../pluggable.php | |
| 88 | check_comment_flood | action | no | /.../comment.php | |
| 89 | check_password | filter | no | /.../pluggable.php | |
| 90 | clean_object_term_cache | action | no | /.../taxonomy.php | |
| 91 | clean_page_cache | action | no | /.../post.php | |
| 92 | clean_post_cache | action | no | /.../post.php | |
| 93 | clean_term_cache | action | no | /.../taxonomy.php | |
| 94 | clean_url | filter | no | /.../formatting.php | |
| 95 | commentrss2_item | action | no | /.../feed-rss2-comments.php | |
| 96 | commentsrss2_head | action | no | /.../feed-rss2-comments.php | |
| 97 | comments_array | filter | no | /.../comment-template.php | |
| 98 | comments_number | filter | no | /.../comment-template.php | |
| 99 | comments_open | filter | no | /.../comment-template.php | |
| 100 | comments_per_page | filter | YES | /.../edit-comments.php | |
| 101 | comments_popup_link_attributes | filter | no | /.../comment-template.php | |
| 102 | comments_popup_template | filter | no | /.../theme.php | |
| 103 | comments_rewrite_rules | filter | no | /.../rewrite.php | |
| 104 | comments_template | filter | no | /.../comment-template.php | |
| 105 | comment_atom_entry | action | no | /.../feed-atom-comments.php | |
| 106 | comment_author | filter | no | /.../comment-template.php | |
| 107 | comment_author_rss | filter | no | /.../feed.php | |
| 108 | comment_closed | action | no | wp-comments-post.php | |
| 109 | comment_edit_pre | filter | no | /.../comment.php | |
| 110 | comment_edit_redirect | filter | no | /.../comment.php | |
| 111 | comment_email | filter | no | /.../comment-template.php | |
| 112 | comment_excerpt | filter | no | /.../comment-template.php | |
| 113 | comment_feed_groupby | filter | no | /.../query.php | |
| 114 | comment_feed_join | filter | no | /.../query.php | |
| 115 | comment_feed_where | filter | no | /.../query.php | |
| 116 | comment_flood_filter | filter | no | /.../comment.php | |
| 117 | comment_flood_trigger | action | no | /.../comment.php | |
| 118 | comment_form | action | no | /.../comments-popup.php | |
| 119 | comment_form | action | no | /.../comments.php | |
| 120 | comment_form | action | no | /.../comments-popup.php | |
| 121 | comment_form | action | no | /.../comments.php | |
| 122 | comment_id_not_found | action | no | wp-comments-post.php | |
| 123 | comment_loop_start | action | no | /.../query.php | |
| 124 | comment_moderation_subject | filter | no | /.../pluggable.php | |
| 125 | comment_moderation_text | filter | no | /.../pluggable.php | |
| 126 | comment_notification_headers | filter | no | /.../pluggable.php | |
| 127 | comment_notification_subject | filter | no | /.../pluggable.php | |
| 128 | comment_notification_text | filter | no | /.../pluggable.php | |
| 129 | comment_on_draft | action | no | wp-comments-post.php | |
| 130 | comment_post | action | no | /.../comment.php | |
| 131 | comment_post_redirect | filter | no | wp-comments-post.php | |
| 132 | comment_relatedlinks_list | action | no | /.../edit-form-comment.php | |
| 133 | comment_row_actions | filter | YES | /.../template.php | |
| 134 | comment_save_pre | filter | no | /.../comment.php | |
| 135 | comment_status_links | filter | no | /.../edit-comments.php | |
| 136 | comment_text | filter | no | /.../comment-template.php | |
| 137 | comment_text_rss | filter | no | /.../feed.php | |
| 138 | comment_url | filter | no | /.../comment-template.php | |
| 139 | content_save_pre | filter | no | xmlrpc.php | |
| 140 | created_$taxonomy | note | action | no | /.../taxonomy.php |
| 141 | created_term | action | no | /.../taxonomy.php | |
| 142 | create_$taxonomy | note | action | no | /.../taxonomy.php |
| 143 | create_term | action | no | /.../taxonomy.php | |
| 144 | cron_schedules | filter | no | /.../cron.php | |
| 145 | dashboard_count_sentence | filter | no | /.../index.php | |
| 146 | dashboard_incoming_links_feed | filter | no | /.../dashboard.php | |
| 147 | dashboard_incoming_links_link | filter | no | /.../dashboard.php | |
| 148 | dashboard_primary_feed | filter | no | /.../dashboard.php | |
| 149 | dashboard_primary_link | filter | no | /.../dashboard.php | |
| 150 | dashboard_primary_title | filter | no | /.../dashboard.php | |
| 151 | dashboard_secondary_feed | filter | no | /.../dashboard.php | |
| 152 | dashboard_secondary_link | filter | no | /.../dashboard.php | |
| 153 | dashboard_secondary_title | filter | no | /.../dashboard.php | |
| 154 | dashmenu | action | no | /.../menu-header.php | |
| 155 | date_rewrite_rules | filter | no | /.../rewrite.php | |
| 156 | day_link | filter | no | /.../link-template.php | |
| 157 | dbx_post_advanced | action | no | /.../edit-form-advanced.php | |
| 158 | dbx_post_sidebar | action | no | /.../edit-form-advanced.php | |
| 159 | deactivate_ | note | action | no | /.../plugin.php |
| 160 | default_avatar_select | filter | YES | /.../options-discussion.php | |
| 161 | default_content | filter | no | /.../post.php | |
| 162 | default_excerpt | filter | no | /.../post.php | |
| 163 | default_feed | filter | no | /.../feed.php | |
| 164 | default_title | filter | no | /.../post.php | |
| 165 | deleted_link | action | no | /.../bookmark.php | |
| 166 | deleted_post | action | no | /.../post.php | |
| 167 | delete_$taxonomy | note | action | no | /.../taxonomy.php |
| 168 | delete_attachment | action | no | /.../post.php | |
| 169 | delete_comment | action | no | /.../comment.php | |
| 170 | delete_link | action | no | /.../bookmark.php | |
| 171 | delete_post | action | no | /.../post.php | |
| 172 | delete_term | action | no | /.../taxonomy.php | |
| 173 | delete_user | action | no | /.../user.php | |
| 174 | deprecated_file_included | action | no | /.../functions.php | |
| 175 | deprecated_file_trigger_error | filter | no | /.../functions.php | |
| 176 | deprecated_function_run | action | no | /.../functions.php | |
| 177 | deprecated_function_trigger_error | filter | no | /.../functions.php | |
| 178 | do_meta_boxes | action | YES | /.../template.php | |
| 179 | do_robots | action | no | /.../template-loader.php | |
| 180 | do_robotstxt | action | no | /.../functions.php | |
| 181 | dynamic_sidebar_params | filter | no | /.../widgets.php | |
| 182 | editable_slug | filter | no | /.../post.php | |
| 183 | editable_slug | filter | YES | /.../edit-category-form.php | |
| 184 | editable_slug | filter | no | /.../edit-link-category-form.php | |
| 185 | editable_slug | filter | no | /.../edit-tag-form.php | |
| 186 | edited_$taxonomy | note | action | no | /.../taxonomy.php |
| 187 | edited_term | action | no | /.../taxonomy.php | |
| 188 | editor_max_image_size | filter | no | /.../media.php | |
| 189 | edit_$field | note | filter | no | /.../post.php |
| 190 | edit_$field | note | filter | no | /.../bookmark.php |
| 191 | edit_$taxonomy | note | action | no | /.../taxonomy.php |
| 192 | edit_${taxonomy}_$field | note | filter | no | /.../taxonomy.php |
| 193 | edit_attachment | action | no | /.../post.php | |
| 194 | edit_category_form | action | no | /.../edit-category-form.php | |
| 195 | edit_category_form_pre | action | no | /.../edit-category-form.php | |
| 196 | edit_comment | action | no | /.../comment.php | |
| 197 | edit_comment_link | filter | no | /.../link-template.php | |
| 198 | edit_form_advanced | action | no | /.../edit-form-advanced.php | |
| 199 | edit_link | action | no | /.../bookmark.php | |
| 200 | edit_link_category_form | action | no | /.../edit-link-category-form.php | |
| 201 | edit_link_category_form_pre | action | no | /.../edit-link-category-form.php | |
| 202 | edit_page_form | action | no | /.../edit-page-form.php | |
| 203 | edit_post | action | no | /.../comment.php | |
| 204 | edit_post | action | no | /.../post.php | |
| 205 | edit_post_$field | note | filter | no | /.../post.php |
| 206 | edit_post_link | filter | no | /.../link-template.php | |
| 207 | edit_tag_form | action | no | /.../edit-tag-form.php | |
| 208 | edit_tag_form_pre | action | no | /.../edit-tag-form.php | |
| 209 | edit_term | action | no | /.../taxonomy.php | |
| 210 | edit_term_$field | note | filter | no | /.../taxonomy.php |
| 211 | edit_user_profile | action | no | /.../user-edit.php | |
| 212 | example_filter | filter | no | /.../plugin.php | |
| 213 | explain_nonce_ | note | filter | no | /.../functions.php |
| 214 | export_wp | action | no | /.../export.php | |
| 215 | ext2type | filter | no | /.../functions.php | |
| 216 | feed_link | filter | no | /.../link-template.php | |
| 217 | filesystem_method | filter | YES | /.../file.php | |
| 218 | filesystem_method_file | filter | YES | /.../file.php | |
| 219 | file_is_displayable_image | filter | no | /.../image.php | |
| 220 | flash_uploader | filter | no | /.../media.php | |
| 221 | format_to_edit | filter | no | /.../formatting.php | |
| 222 | format_to_post | filter | no | /.../formatting.php | |
| 223 | found_posts | filter | no | /.../query.php | |
| 224 | found_posts_query | filter | no | /.../query.php | |
| 225 | gallery_style | filter | no | /.../media.php | |
| 226 | getarchives_join | filter | no | /.../general-template.php | |
| 227 | getarchives_where | filter | no | /.../general-template.php | |
| 228 | gettext | filter | no | /.../l10n.php | |
| 229 | get_$taxonomy | note | filter | no | /.../taxonomy.php |
| 230 | get_archives_link | filter | YES | /.../general-template.php | |
| 231 | get_attached_file | filter | no | /.../post.php | |
| 232 | get_avatar | filter | no | /.../pluggable.php | |
| 233 | get_bloginfo_rss | filter | no | /.../feed.php | |
| 234 | get_bookmarks | filter | no | /.../bookmark.php | |
| 235 | get_comment | filter | no | /.../comment.php | |
| 236 | get_comments_number | filter | no | /.../comment-template.php | |
| 237 | get_comment_author | filter | no | /.../comment-template.php | |
| 238 | get_comment_author_email | filter | no | /.../comment-template.php | |
| 239 | get_comment_author_IP | filter | no | /.../comment-template.php | |
| 240 | get_comment_author_link | filter | no | /.../comment-template.php | |
| 241 | get_comment_author_url | filter | no | /.../comment-template.php | |
| 242 | get_comment_author_url_link | filter | no | /.../comment-template.php | |
| 243 | get_comment_date | filter | no | /.../comment-template.php | |
| 244 | get_comment_excerpt | filter | no | /.../comment-template.php | |
| 245 | get_comment_ID | filter | no | /.../comment-template.php | |
| 246 | get_comment_text | filter | no | /.../comment-template.php | |
| 247 | get_comment_time | filter | no | /.../comment-template.php | |
| 248 | get_comment_type | filter | no | /.../comment-template.php | |
| 249 | get_editable_authors | filter | no | /.../user.php | |
| 250 | get_edit_comment_link | filter | no | /.../link-template.php | |
| 251 | get_edit_post_link | filter | no | /.../link-template.php | |
| 252 | get_enclosed | filter | no | /.../post.php | |
| 253 | get_footer | action | no | /.../general-template.php | |
| 254 | get_header | action | no | /.../general-template.php | |
| 255 | get_image_tag | filter | YES | /.../media.php | |
| 256 | get_image_tag_class | filter | YES | /.../media.php | |
| 257 | get_lastpostdate | filter | no | /.../post.php | |
| 258 | get_lastpostmodified | filter | no | /.../post.php | |
| 259 | get_others_drafts | filter | no | /.../user.php | |
| 260 | get_pagenum_link | filter | no | /.../link-template.php | |
| 261 | get_pages | filter | no | /.../post.php | |
| 262 | get_post_time | filter | YES | /.../general-template.php | |
| 263 | get_pung | filter | no | /.../post.php | |
| 264 | get_search_query | filter | no | /.../general-template.php | |
| 265 | get_sidebar | action | no | /.../general-template.php | |
| 266 | get_tags | filter | no | /.../category.php | |
| 267 | get_term | filter | no | /.../taxonomy.php | |
| 268 | get_terms | filter | no | /.../taxonomy.php | |
| 269 | get_the_excerpt | filter | no | /.../post-template.php | |
| 270 | get_the_generator_{$type} | note | filter | no | /.../general-template.php |
| 271 | get_the_guid | filter | no | /.../post-template.php | |
| 272 | get_the_modified_date | filter | no | /.../general-template.php | |
| 273 | get_the_modified_time | filter | no | /.../general-template.php | |
| 274 | get_the_tags | filter | no | /.../category-template.php | |
| 275 | get_the_time | filter | no | /.../general-template.php | |
| 276 | get_to_ping | filter | no | /.../post.php | |
| 277 | get_users_drafts | filter | no | /.../user.php | |
| 278 | get_user_option_{$option} | note | filter | no | /.../user.php |
| 279 | get_wp_title_rss | filter | no | /.../feed.php | |
| 280 | get_{$adjacent}_post_join | note | filter | no | /.../link-template.php |
| 281 | get_{$adjacent}_post_sort | note | filter | no | /.../link-template.php |
| 282 | get_{$adjacent}_post_where | note | filter | no | /.../link-template.php |
| 283 | got_rewrite | filter | no | /.../misc.php | |
| 284 | home_template | filter | no | /.../theme.php | |
| 285 | htmledit_pre | filter | no | /.../formatting.php | |
| 286 | icon_dir | filter | no | /.../post.php | |