WP hooks navigation: Home/browse • Actions index • Filters index
Important! Some hooks get applied in multiple files. If you are trying to figure out what a specific hook does, you need to look in all the files that apply the hook. Click the "details" link next to any hook for more information.
| Hook | Type | New? | File | ||
|---|---|---|---|---|---|
| 1 | add_attachment | action | no | wp-includes/post.php | |
| 2 | add_ping | filter | no | wp-includes/post.php | |
| 3 | add_trashed_suffix_to_trashed_posts | filter | no | wp-includes/post.php | |
| 4 | after_delete_post | action | no | wp-includes/post.php | |
| 5 | attachment_updated | action | no | wp-includes/post.php | |
| 6 | before_delete_post | action | no | wp-includes/post.php | |
| 7 | clean_attachment_cache | action | no | wp-includes/post.php | |
| 8 | clean_page_cache | action | no | wp-includes/post.php | |
| 9 | clean_post_cache | action | no | wp-includes/post.php | |
| 10 | default_category_post_types | filter | no | wp-includes/post.php | |
| 11 | deleted_post | action | no | wp-includes/post.php | |
| 12 | deleted_post | action | no | wp-includes/post.php | |
| 13 | delete_attachment | action | no | wp-includes/post.php | |
| 14 | delete_post | action | no | wp-includes/post.php | |
| 15 | delete_post | action | no | wp-includes/post.php | |
| 16 | edit_attachment | action | no | wp-includes/post.php | |
| 17 | edit_post | action | no | wp-includes/post.php | |
| 18 | edit_post | action | no | wp-includes/post.php | |
| 19 | edit_post_{$field} | note | filter | no | wp-includes/post.php |
| 20 | edit_post_{$post->post_type} | note | action | no | wp-includes/post.php |
| 21 | edit_post_{$post->post_type} | note | action | no | wp-includes/post.php |
| 22 | edit_{$field} | note | filter | no | wp-includes/post.php |
| 23 | get_attached_file | filter | no | wp-includes/post.php | |
| 24 | get_enclosed | filter | no | wp-includes/post.php | |
| 25 | get_lastpostdate | filter | no | wp-includes/post.php | |
| 26 | get_lastpostmodified | filter | no | wp-includes/post.php | |
| 27 | get_pages | filter | no | wp-includes/post.php | |
| 28 | get_pages | filter | no | wp-includes/post.php | |
| 29 | get_pages | filter | no | wp-includes/post.php | |
| 30 | get_page_uri | filter | no | wp-includes/post.php | |
| 31 | get_post_status | filter | no | wp-includes/post.php | |
| 32 | get_pung | filter | no | wp-includes/post.php | |
| 33 | get_to_ping | filter | no | wp-includes/post.php | |
| 34 | icon_dir | filter | no | wp-includes/post.php | |
| 35 | icon_dirs | filter | no | wp-includes/post.php | |
| 36 | icon_dir_uri | filter | no | wp-includes/post.php | |
| 37 | is_post_status_viewable | filter | YES | wp-includes/post.php | |
| 38 | is_post_type_viewable | filter | YES | wp-includes/post.php | |
| 39 | is_sticky | filter | no | wp-includes/post.php | |
| 40 | post_mime_types | filter | no | wp-includes/post.php | |
| 41 | post_stuck | action | no | wp-includes/post.php | |
| 42 | post_type_labels_{$post_type} | note | filter | no | wp-includes/post.php |
| 43 | post_unstuck | action | no | wp-includes/post.php | |
| 44 | post_updated | action | no | wp-includes/post.php | |
| 45 | post_{$field} | note | filter | no | wp-includes/post.php |
| 46 | pre_delete_attachment | filter | no | wp-includes/post.php | |
| 47 | pre_delete_post | filter | no | wp-includes/post.php | |
| 48 | pre_get_lastpostmodified | filter | no | wp-includes/post.php | |
| 49 | pre_post_update | action | no | wp-includes/post.php | |
| 50 | pre_post_{$field} | note | filter | no | wp-includes/post.php |
| 51 | pre_trash_post | filter | no | wp-includes/post.php | |
| 52 | pre_untrash_post | filter | no | wp-includes/post.php | |
| 53 | pre_wp_unique_post_slug | filter | no | wp-includes/post.php | |
| 54 | pre_{$field} | note | filter | no | wp-includes/post.php |
| 55 | registered_post_type | action | no | wp-includes/post.php | |
| 56 | save_post | action | no | wp-includes/post.php | |
| 57 | save_post | action | no | wp-includes/post.php | |
| 58 | save_post_{$post->post_type} | note | action | no | wp-includes/post.php |
| 59 | save_post_{$post->post_type} | note | action | no | wp-includes/post.php |
| 60 | transition_post_status | action | no | wp-includes/post.php | |
| 61 | trashed_post | action | no | wp-includes/post.php | |
| 62 | trashed_post_comments | action | no | wp-includes/post.php | |
| 63 | trash_post_comments | action | no | wp-includes/post.php | |
| 64 | unregistered_post_type | action | no | wp-includes/post.php | |
| 65 | untrashed_post | action | no | wp-includes/post.php | |
| 66 | untrashed_post_comments | action | no | wp-includes/post.php | |
| 67 | untrash_post | action | no | wp-includes/post.php | |
| 68 | untrash_post_comments | action | no | wp-includes/post.php | |
| 69 | update_attached_file | filter | no | wp-includes/post.php | |
| 70 | wp_after_insert_post | action | no | wp-includes/post.php | |
| 71 | wp_count_attachments | filter | no | wp-includes/post.php | |
| 72 | wp_count_posts | filter | no | wp-includes/post.php | |
| 73 | wp_count_posts | filter | no | wp-includes/post.php | |
| 74 | wp_get_attachment_caption | filter | no | wp-includes/post.php | |
| 75 | wp_get_attachment_metadata | filter | no | wp-includes/post.php | |
| 76 | wp_get_attachment_thumb_file | filter | no | wp-includes/post.php | |
| 77 | wp_get_attachment_thumb_url | filter | no | wp-includes/post.php | |
| 78 | wp_get_attachment_url | filter | no | wp-includes/post.php | |
| 79 | wp_get_original_image_path | filter | no | wp-includes/post.php | |
| 80 | wp_get_original_image_url | filter | no | wp-includes/post.php | |
| 81 | wp_insert_attachment_data | filter | no | wp-includes/post.php | |
| 82 | wp_insert_post | action | no | wp-includes/post.php | |
| 83 | wp_insert_post | action | no | wp-includes/post.php | |
| 84 | wp_insert_post_data | filter | no | wp-includes/post.php | |
| 85 | wp_insert_post_empty_content | filter | no | wp-includes/post.php | |
| 86 | wp_insert_post_parent | filter | no | wp-includes/post.php | |
| 87 | wp_mime_type_icon | filter | no | wp-includes/post.php | |
| 88 | wp_trash_post | action | no | wp-includes/post.php | |
| 89 | wp_unique_post_slug | filter | no | wp-includes/post.php | |
| 90 | wp_unique_post_slug_is_bad_attachment_slug | filter | no | wp-includes/post.php | |
| 91 | wp_unique_post_slug_is_bad_flat_slug | filter | no | wp-includes/post.php | |
| 92 | wp_unique_post_slug_is_bad_hierarchical_slug | filter | no | wp-includes/post.php | |
| 93 | wp_untrash_post_status | filter | no | wp-includes/post.php | |
| 94 | wp_update_attachment_metadata | filter | no | wp-includes/post.php | |
| 95 | xmlrpc_publish_post | action | no | wp-includes/post.php | |
| 96 | _wp_relative_upload_path | filter | no | wp-includes/post.php | |
| 97 | {$field_no_prefix}_edit_pre | note | filter | no | wp-includes/post.php |
| 98 | {$field_no_prefix}_save_pre | note | filter | no | wp-includes/post.php |
| 99 | {$field} | note | filter | no | wp-includes/post.php |
| 100 | {$field}_pre | note | filter | no | wp-includes/post.php |
| 101 | {$new_status}_{$post->post_type} | note | action | no | wp-includes/post.php |
| 102 | {$old_status}_to_{$new_status} | note | action | no | wp-includes/post.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. You can usually catch this sort of thing by comparing this hook to the list of "related hooks" below.