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 | check_comment_flood | action | no | wp-includes/comment.php | |
2 | comments_clauses | filter | YES | wp-includes/comment.php | |
3 | comment_duplicate_trigger | action | no | wp-includes/comment.php | |
4 | comment_flood_filter | filter | no | wp-includes/comment.php | |
5 | comment_flood_trigger | action | no | wp-includes/comment.php | |
6 | comment_max_links_url | filter | no | wp-includes/comment.php | |
7 | comment_post | action | no | wp-includes/comment.php | |
8 | comment_save_pre | filter | no | wp-includes/comment.php | |
9 | comment_text | filter | no | wp-includes/comment.php | |
10 | comment_{$new_status}_{$comment->comment_type} | note | action | no | wp-includes/comment.php |
11 | comment_{$old_status}_to_{$new_status} | note | action | no | wp-includes/comment.php |
12 | deleted_comment | action | no | wp-includes/comment.php | |
13 | deleted_commentmeta | action | no | wp-includes/comment.php | |
14 | deleted_postmeta | action | no | wp-includes/comment.php | |
15 | deleted_postmeta | action | no | wp-includes/comment.php | |
16 | delete_comment | action | no | wp-includes/comment.php | |
17 | delete_commentmeta | action | no | wp-includes/comment.php | |
18 | delete_postmeta | action | no | wp-includes/comment.php | |
19 | delete_postmeta | action | no | wp-includes/comment.php | |
20 | edit_comment | action | no | wp-includes/comment.php | |
21 | edit_post | action | no | wp-includes/comment.php | |
22 | get_comment | filter | no | wp-includes/comment.php | |
23 | pingback_useragent | filter | no | wp-includes/comment.php | |
24 | preprocess_comment | filter | no | wp-includes/comment.php | |
25 | pre_comment_approved | filter | no | wp-includes/comment.php | |
26 | pre_comment_author_email | filter | no | wp-includes/comment.php | |
27 | pre_comment_author_email | filter | no | wp-includes/comment.php | |
28 | pre_comment_author_name | filter | no | wp-includes/comment.php | |
29 | pre_comment_author_name | filter | no | wp-includes/comment.php | |
30 | pre_comment_author_url | filter | no | wp-includes/comment.php | |
31 | pre_comment_author_url | filter | no | wp-includes/comment.php | |
32 | pre_comment_content | filter | no | wp-includes/comment.php | |
33 | pre_comment_user_agent | filter | no | wp-includes/comment.php | |
34 | pre_comment_user_ip | filter | no | wp-includes/comment.php | |
35 | pre_get_comments | action | YES | wp-includes/comment.php | |
36 | pre_ping | action | no | wp-includes/comment.php | |
37 | pre_user_id | filter | no | wp-includes/comment.php | |
38 | pre_user_id | filter | no | wp-includes/comment.php | |
39 | spammed_comment | action | no | wp-includes/comment.php | |
40 | spam_comment | action | no | wp-includes/comment.php | |
41 | the_comments | filter | YES | wp-includes/comment.php | |
42 | the_content | filter | no | wp-includes/comment.php | |
43 | the_excerpt | filter | no | wp-includes/comment.php | |
44 | the_title | filter | no | wp-includes/comment.php | |
45 | transition_comment_status | action | no | wp-includes/comment.php | |
46 | trashed_comment | action | no | wp-includes/comment.php | |
47 | trash_comment | action | no | wp-includes/comment.php | |
48 | unspammed_comment | action | no | wp-includes/comment.php | |
49 | unspam_comment | action | no | wp-includes/comment.php | |
50 | untrashed_comment | action | no | wp-includes/comment.php | |
51 | untrash_comment | action | no | wp-includes/comment.php | |
52 | wp_blacklist_check | action | no | wp-includes/comment.php | |
53 | wp_count_comments | filter | no | wp-includes/comment.php | |
54 | wp_get_current_commenter | filter | YES | wp-includes/comment.php | |
55 | wp_insert_comment | action | no | wp-includes/comment.php | |
56 | wp_set_comment_status | action | no | wp-includes/comment.php | |
57 | wp_set_comment_status | action | no | wp-includes/comment.php | |
58 | wp_update_comment_count | action | 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.