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 | trashed_comment | action | no | wp-includes/comment.php | |
2 | comment_{$old_status}_to_{$new_status} | note | action | no | wp-includes/comment.php |
3 | transition_comment_status | action | no | wp-includes/comment.php | |
4 | unspammed_comment | action | no | wp-includes/comment.php | |
5 | unspam_comment | action | no | wp-includes/comment.php | |
6 | spammed_comment | action | no | wp-includes/comment.php | |
7 | spam_comment | action | no | wp-includes/comment.php | |
8 | untrashed_comment | action | no | wp-includes/comment.php | |
9 | untrash_comment | action | no | wp-includes/comment.php | |
10 | pre_comment_on_post | action | no | wp-includes/comment.php | |
11 | trash_comment | action | no | wp-includes/comment.php | |
12 | wp_set_comment_status | action | no | wp-includes/comment.php | |
13 | deleted_comment | action | no | wp-includes/comment.php | |
14 | delete_comment | action | no | wp-includes/comment.php | |
15 | wp_check_comment_disallowed_list | action | no | wp-includes/comment.php | |
16 | comment_flood_trigger | action | no | wp-includes/comment.php | |
17 | check_comment_flood | action | no | wp-includes/comment.php | |
18 | comment_duplicate_trigger | action | no | wp-includes/comment.php | |
19 | wp_insert_comment | action | no | wp-includes/comment.php | |
20 | comment_on_password_protected | action | no | wp-includes/comment.php | |
21 | comment_on_draft | action | no | wp-includes/comment.php | |
22 | comment_on_trash | action | no | wp-includes/comment.php | |
23 | comment_closed | action | no | wp-includes/comment.php | |
24 | comment_id_not_found | action | no | wp-includes/comment.php | |
25 | clean_comment_cache | action | no | wp-includes/comment.php | |
26 | pre_ping | action | no | wp-includes/comment.php | |
27 | do_all_pings | action | no | wp-includes/comment.php | |
28 | edit_post | action | no | wp-includes/comment.php | |
29 | edit_post_{$post->post_type} | note | action | no | wp-includes/comment.php |
30 | wp_update_comment_count | action | no | wp-includes/comment.php | |
31 | edit_comment | action | no | wp-includes/comment.php | |
32 | wp_set_comment_status | action | no | wp-includes/comment.php | |
33 | comment_post | action | no | wp-includes/comment.php | |
34 | comment_{$new_status}_{$comment->comment_type} | note | action | no | wp-includes/comment.php |
35 | close_comments_for_post_types | filter | no | wp-includes/comment.php | |
36 | wp_update_comment_type_batch_size | filter | no | wp-includes/comment.php | |
37 | wp_anonymize_comment | filter | no | wp-includes/comment.php | |
38 | allow_empty_comment | filter | no | wp-includes/comment.php | |
39 | close_comments_for_post_types | filter | no | wp-includes/comment.php | |
40 | comment_duplicate_message | filter | no | wp-includes/comment.php | |
41 | wp_count_comments | filter | no | wp-includes/comment.php | |
42 | wp_get_comment_fields_max_lengths | filter | no | wp-includes/comment.php | |
43 | get_page_of_comment | filter | no | wp-includes/comment.php | |
44 | get_page_of_comment_query_args | filter | no | wp-includes/comment.php | |
45 | comment_flood_message | filter | no | wp-includes/comment.php | |
46 | comment_flood_filter | filter | no | wp-includes/comment.php | |
47 | pre_comment_approved | filter | no | wp-includes/comment.php | |
48 | comment_flood_message | filter | no | wp-includes/comment.php | |
49 | wp_is_comment_flood | filter | no | wp-includes/comment.php | |
50 | wp_get_current_commenter | filter | no | wp-includes/comment.php | |
51 | duplicate_comment_id | filter | no | wp-includes/comment.php | |
52 | pre_comment_author_url | filter | no | wp-includes/comment.php | |
53 | pre_comment_author_email | filter | no | wp-includes/comment.php | |
54 | pre_comment_author_name | filter | no | wp-includes/comment.php | |
55 | comment_cookie_lifetime | filter | no | wp-includes/comment.php | |
56 | get_default_comment_status | filter | no | wp-includes/comment.php | |
57 | get_comment | filter | no | wp-includes/comment.php | |
58 | comment_max_links_url | filter | no | wp-includes/comment.php | |
59 | preprocess_comment | filter | no | wp-includes/comment.php | |
60 | pingback_useragent | filter | no | wp-includes/comment.php | |
61 | the_title | filter | no | wp-includes/comment.php | |
62 | the_excerpt | filter | no | wp-includes/comment.php | |
63 | the_content | filter | no | wp-includes/comment.php | |
64 | pre_wp_update_comment_count_now | filter | no | wp-includes/comment.php | |
65 | wp_update_comment_data | filter | no | wp-includes/comment.php | |
66 | comment_save_pre | filter | no | wp-includes/comment.php | |
67 | notify_post_author | filter | no | wp-includes/comment.php | |
68 | notify_moderator | filter | no | wp-includes/comment.php | |
69 | comment_text | filter | no | wp-includes/comment.php | |
70 | pre_comment_author_email | filter | no | wp-includes/comment.php | |
71 | pre_comment_author_url | filter | no | wp-includes/comment.php | |
72 | pre_comment_user_ip | filter | no | wp-includes/comment.php | |
73 | pre_comment_content | filter | no | wp-includes/comment.php | |
74 | pre_comment_author_name | filter | no | wp-includes/comment.php | |
75 | pre_comment_user_agent | filter | no | wp-includes/comment.php | |
76 | pre_user_id | filter | no | wp-includes/comment.php | |
77 | pre_user_id | filter | no | wp-includes/comment.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.