Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Hooks in wp-includes/post.php

WP version: 3.0

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 get_attached_file filter no wp-includes/post.php
2 update_attached_file filter no wp-includes/post.php
3 _wp_relative_upload_path filter no wp-includes/post.php
4 edit_{$field} note filter no wp-includes/post.php
5 {$field_no_prefix}_edit_pre note filter no wp-includes/post.php
6 edit_post_{$field} note filter no wp-includes/post.php
7 pre_{$field} note filter no wp-includes/post.php
8 {$field_no_prefix}_save_pre note filter no wp-includes/post.php
9 pre_post_{$field} note filter no wp-includes/post.php
10 {$field}_pre note filter no wp-includes/post.php
11 {$field} note filter no wp-includes/post.php
12 post_{$field} note filter no wp-includes/post.php
13 wp_insert_post_data filter no wp-includes/post.php
14 hierarchical_post_types filter no wp-includes/post.php
15 add_ping filter no wp-includes/post.php
16 get_enclosed filter no wp-includes/post.php
17 get_pung filter no wp-includes/post.php
18 get_to_ping filter no wp-includes/post.php
19 get_pages filter no wp-includes/post.php
20 get_pages filter no wp-includes/post.php
21 get_pages filter no wp-includes/post.php
22 wp_delete_file filter no wp-includes/post.php
23 wp_delete_file filter no wp-includes/post.php
24 wp_delete_file filter no wp-includes/post.php
25 wp_delete_file filter no wp-includes/post.php
26 wp_get_attachment_metadata filter no wp-includes/post.php
27 wp_update_attachment_metadata filter no wp-includes/post.php
28 wp_get_attachment_url filter no wp-includes/post.php
29 wp_get_attachment_thumb_file filter no wp-includes/post.php
30 wp_get_attachment_thumb_url filter no wp-includes/post.php
31 icon_dir filter no wp-includes/post.php
32 icon_dir_uri filter no wp-includes/post.php
33 icon_dirs filter no wp-includes/post.php
34 wp_mime_type_icon filter no wp-includes/post.php
35 pub_priv_sql_capability filter no wp-includes/post.php
36 get_lastpostdate filter no wp-includes/post.php
37 get_lastpostmodified filter no wp-includes/post.php
38 get_lastpostmodified filter no wp-includes/post.php
39 _wp_post_revision_fields filter no wp-includes/post.php
40 delete_postmeta action no wp-includes/post.php
41 deleted_postmeta action no wp-includes/post.php
42 delete_post action no wp-includes/post.php
43 delete_comment action no wp-includes/post.php
44 deleted_comment action no wp-includes/post.php
45 delete_postmeta action no wp-includes/post.php
46 deleted_postmeta action no wp-includes/post.php
47 delete_post action no wp-includes/post.php
48 deleted_post action no wp-includes/post.php
49 deleted_post action no wp-includes/post.php
50 trash_post action no wp-includes/post.php
51 trashed_post action no wp-includes/post.php
52 untrash_post action no wp-includes/post.php
53 untrashed_post action no wp-includes/post.php
54 trash_post_comments action no wp-includes/post.php
55 trashed_post_comments action no wp-includes/post.php
56 untrash_post_comments action no wp-includes/post.php
57 untrashed_post_comments action no wp-includes/post.php
58 pre_post_update action no wp-includes/post.php
59 edit_post action no wp-includes/post.php
60 save_post action no wp-includes/post.php
61 wp_insert_post action no wp-includes/post.php
62 edit_post action no wp-includes/post.php
63 save_post action no wp-includes/post.php
64 wp_insert_post action no wp-includes/post.php
65 transition_post_status action no wp-includes/post.php
66 {$old_status}_to_{$new_status} note action no wp-includes/post.php
67 {$new_status}_{$post->post_type} note action no wp-includes/post.php
68 edit_attachment action no wp-includes/post.php
69 add_attachment action no wp-includes/post.php
70 delete_attachment action no wp-includes/post.php
71 delete_comment action no wp-includes/post.php
72 deleted_comment action no wp-includes/post.php
73 delete_postmeta action no wp-includes/post.php
74 deleted_postmeta action no wp-includes/post.php
75 delete_post action no wp-includes/post.php
76 deleted_post action no wp-includes/post.php
77 clean_post_cache action no wp-includes/post.php
78 clean_page_cache action no wp-includes/post.php
79 private_to_published action no wp-includes/post.php
80 xmlrpc_publish_post action no wp-includes/post.php
81 app_publish_post action no wp-includes/post.php
82 added_postmeta action no wp-includes/post.php
83 added_postmeta action no wp-includes/post.php
84 _wp_put_post_revision action no wp-includes/post.php
85 wp_restore_post_revision action no wp-includes/post.php
86 wp_delete_post_revision action no wp-includes/post.php
87 post_updated action YES wp-includes/post.php
88 clean_attachment_cache action YES wp-includes/post.php

Important warning about variable hooks

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.