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 | app_publish_post | action | no | wp-includes/post.php | |
4 | deleted_post | action | no | wp-includes/post.php | |
5 | delete_attachment | action | no | wp-includes/post.php | |
6 | delete_post | action | no | wp-includes/post.php | |
7 | edit_attachment | action | no | wp-includes/post.php | |
8 | edit_post | action | no | wp-includes/post.php | |
9 | edit_post | action | no | wp-includes/post.php | |
10 | edit_post_{$field} | note | filter | YES | wp-includes/post.php |
11 | edit_{$field} | note | filter | no | wp-includes/post.php |
12 | get_attached_file | filter | no | wp-includes/post.php | |
13 | get_enclosed | filter | no | wp-includes/post.php | |
14 | get_lastpostdate | filter | YES | wp-includes/post.php | |
15 | get_lastpostmodified | filter | YES | wp-includes/post.php | |
16 | get_pages | filter | no | wp-includes/post.php | |
17 | get_pages | filter | no | wp-includes/post.php | |
18 | get_pung | filter | no | wp-includes/post.php | |
19 | get_to_ping | filter | no | wp-includes/post.php | |
20 | icon_dir | filter | no | wp-includes/post.php | |
21 | icon_dir_uri | filter | no | wp-includes/post.php | |
22 | post_{$field} | note | filter | YES | wp-includes/post.php |
23 | pre_post_{$field} | note | filter | YES | wp-includes/post.php |
24 | pre_{$field} | note | filter | no | wp-includes/post.php |
25 | private_to_published | action | no | wp-includes/post.php | |
26 | pub_priv_sql_capability | filter | no | wp-includes/post.php | |
27 | save_post | action | no | wp-includes/post.php | |
28 | save_post | action | no | wp-includes/post.php | |
29 | transition_post_status | action | YES | wp-includes/post.php | |
30 | update_attached_file | filter | no | wp-includes/post.php | |
31 | wp_delete_file | filter | no | wp-includes/post.php | |
32 | wp_delete_file | filter | no | wp-includes/post.php | |
33 | wp_get_attachment_metadata | filter | no | wp-includes/post.php | |
34 | wp_get_attachment_thumb_file | filter | no | wp-includes/post.php | |
35 | wp_get_attachment_thumb_url | filter | no | wp-includes/post.php | |
36 | wp_get_attachment_url | filter | no | wp-includes/post.php | |
37 | wp_insert_post | action | no | wp-includes/post.php | |
38 | wp_insert_post | action | no | wp-includes/post.php | |
39 | wp_mime_type_icon | filter | no | wp-includes/post.php | |
40 | wp_update_attachment_metadata | filter | no | wp-includes/post.php | |
41 | xmlrpc_publish_post | action | no | wp-includes/post.php | |
42 | {$field_no_prefix}_edit_pre | note | filter | YES | wp-includes/post.php |
43 | {$field_no_prefix}_save_pre | note | filter | YES | wp-includes/post.php |
44 | {$field} | note | filter | no | wp-includes/post.php |
45 | {$field}_pre | note | filter | YES | wp-includes/post.php |
46 | {$new_status}_{$post->post_type} | note | action | YES | wp-includes/post.php |
47 | {$old_status}_to_{$new_status} | note | action | YES | 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.