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 | admin_action_{$_REQUEST[action]} | note | action | YES | /.../admin.php |
| 2 | admin_head{$hook_suffix} | note | action | YES | /.../admin-header.php |
| 3 | admin_print_scripts{$hook_suffix} | note | action | YES | /.../admin-header.php |
| 4 | admin_print_styles | action | YES | /.../press-this.php | |
| 5 | admin_print_styles{$hook_suffix} | note | action | YES | /.../admin-header.php |
| 6 | avatar_defaults | filter | YES | /.../options-discussion.php | |
| 7 | comments_per_page | filter | YES | /.../edit-comments.php | |
| 8 | comment_row_actions | filter | YES | /.../template.php | |
| 9 | default_avatar_select | filter | YES | /.../options-discussion.php | |
| 10 | do_meta_boxes | action | YES | /.../template.php | |
| 11 | editable_slug | filter | YES | /.../edit-category-form.php | |
| 12 | filesystem_method | filter | YES | /.../file.php | |
| 13 | filesystem_method_file | filter | YES | /.../file.php | |
| 14 | get_archives_link | filter | YES | /.../general-template.php | |
| 15 | get_image_tag | filter | YES | /.../media.php | |
| 16 | get_image_tag_class | filter | YES | /.../media.php | |
| 17 | get_post_time | filter | YES | /.../general-template.php | |
| 18 | image_add_caption_shortcode | filter | YES | /.../media.php | |
| 19 | image_make_intermediate_size | filter | YES | /.../media.php | |
| 20 | img_caption_shortcode | filter | YES | /.../media.php | |
| 21 | media_upload_form_url | filter | YES | /.../media.php | |
| 22 | populate_options | action | YES | /.../schema.php | |
| 23 | post-flash-upload-ui | action | YES | /.../media.php | |
| 24 | post-html-upload-ui | action | YES | /.../media.php | |
| 25 | post-upload-ui | action | YES | /.../media.php | |
| 26 | post_date_column_time | filter | YES | /.../edit-post-rows.php | |
| 27 | pre-flash-upload-ui | action | YES | /.../media.php | |
| 28 | pre-html-upload-ui | action | YES | /.../media.php | |
| 29 | pre-upload-ui | action | YES | /.../media.php | |
| 30 | pre_update_option_{$option_name} | note | filter | YES | /.../functions.php |
| 31 | print_styles_array | filter | YES | /.../class.wp-styles.php | |
| 32 | setup_theme | action | YES | wp-settings.php | |
| 33 | set_logged_in_cookie | action | YES | /.../pluggable.php | |
| 34 | shortcut_link | filter | YES | /.../link-template.php | |
| 35 | style_loader_src | filter | YES | /.../class.wp-styles.php | |
| 36 | style_loader_tag | filter | YES | /.../class.wp-styles.php | |
| 37 | the_excerpt_export | filter | YES | /.../export.php | |
| 38 | upload_file_glob | filter | YES | /.../media.php | |
| 39 | widget_links_args | filter | YES | /.../widgets.php | |
| 40 | widget_title | filter | YES | /.../widgets.php | |
| 41 | wp_default_scripts | action | YES | /.../class.wp-scripts.php | |
| 42 | wp_default_styles | action | YES | /.../class.wp-styles.php | |
| 43 | wp_delete_post_revision | action | YES | /.../post.php | |
| 44 | wp_print_styles | action | YES | /.../functions.wp-styles.php | |
| 45 | wp_restore_post_revision | action | YES | /.../post.php | |
| 46 | xmlrpc_blog_options | filter | YES | xmlrpc.php | |
| 47 | _wp_post_revision_fields | filter | YES | /.../post.php | |
| 48 | _wp_post_revision_field_{$field} | note | filter | YES | /.../revision.php |
| 49 | _wp_put_post_revision | action | YES | /.../post.php | |
| 50 | {$action} | note | action | YES | /.../admin-post.php |
| 51 | {$adjacent}_post_link | note | filter | YES | /.../link-template.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.