WP hooks navigation: Home/browse • Actions index • Filters index
Important! Some WordPress hooks get applied in multiple PHP files. If you are trying to figure out what a specific WordPress hook does, sort the table by "hook" and make sure you are looking in all the files where it occurs.
Hook | Type | New? | Instances | ||
---|---|---|---|---|---|
1 | template_redirect | action | YES | 1 | |
2 | comment_id_not_found | action | YES | 1 | |
3 | comment_closed | action | YES | 1 | |
4 | comment_on_draft | action | YES | 1 | |
5 | wp_logout | action | YES | 1 | |
6 | lost_password | action | YES | 1 | |
7 | retreive_password | action | YES | 1 | |
8 | retrieve_password | action | YES | 1 | |
9 | password_reset | action | YES | 1 | |
10 | wp_authenticate | action | YES | 1 | |
11 | wp_login | action | YES | 1 | |
12 | user_register | action | YES | 1 | |
13 | core_files_loaded | action | YES | 1 | |
14 | plugins_loaded | action | YES | 1 | |
15 | init | action | YES | 1 | |
16 | pingback_post | action | YES | 1 | |
17 | check_admin_referer | action | YES | 1 | |
18 | switch_theme | action | YES | 1 | |
19 | {$page_hook} | note | action | YES | 1 |
20 | add_category | action | YES | 1 | |
21 | delete_category | action | YES | 1 | |
22 | edit_form_advanced | action | YES | 1 | |
23 | simple_edit_form | action | YES | 1 | |
24 | edit_page_form | action | YES | 1 | |
25 | manage_posts_custom_column | action | YES | 1 | |
26 | admin_menu | action | YES | 1 | |
27 | save_post | action | YES | 1 | |
28 | private_to_published | action | YES | 1 | |
29 | check_passwords | action | YES | 1 | |
30 | comment_form | action | YES | 1 | |
31 | parse_query | action | YES | 1 | |
32 | generate_rewrite_rules | action | YES | 1 | |
33 | wp_set_comment_status | action | YES | 1 | |
34 | wp_blacklist_check | action | YES | 1 | |
35 | comment_flood_trigger | action | YES | 1 | |
36 | wp_footer | action | YES | 1 | |
37 | wp_meta | action | YES | 1 | |
38 | query_vars | filter | YES | 1 | |
39 | query_string | filter | YES | 1 | |
40 | xmlrpc_methods | filter | YES | 1 | |
41 | content_save_pre | filter | YES | 1 | |
42 | manage_posts_columns | filter | YES | 1 | |
43 | excerpt_save_pre | filter | YES | 1 | |
44 | title_save_pre | filter | YES | 1 | |
45 | category_save_pre | filter | YES | 1 | |
46 | status_save_pre | filter | YES | 1 | |
47 | name_save_pre | filter | YES | 1 | |
48 | content_edit_pre | filter | YES | 1 | |
49 | excerpt_edit_pre | filter | YES | 1 | |
50 | title_edit_pre | filter | YES | 1 | |
51 | comment_edit_pre | filter | YES | 1 | |
52 | comment_save_pre | filter | YES | 1 | |
53 | default_content | filter | YES | 1 | |
54 | default_title | filter | YES | 1 | |
55 | default_excerpt | filter | YES | 1 | |
56 | show_password_fields | filter | YES | 1 | |
57 | posts_where | filter | YES | 1 | |
58 | posts_join | filter | YES | 1 | |
59 | posts_where_paged | filter | YES | 1 | |
60 | posts_join_paged | filter | YES | 1 | |
61 | posts_orderby | filter | YES | 1 | |
62 | the_posts | filter | YES | 1 | |
63 | post_rewrite_rules | filter | YES | 1 | |
64 | date_rewrite_rules | filter | YES | 1 | |
65 | root_rewrite_rules | filter | YES | 1 | |
66 | comments_rewrite_rules | filter | YES | 1 | |
67 | search_rewrite_rules | filter | YES | 1 | |
68 | category_rewrite_rules | filter | YES | 1 | |
69 | author_rewrite_rules | filter | YES | 1 | |
70 | page_rewrite_rules | filter | YES | 1 | |
71 | rewrite_rules_array | filter | YES | 1 | |
72 | mod_rewrite_rules | filter | YES | 1 | |
73 | rewrite_rules | filter | YES | 1 | |
74 | comments_template | filter | YES | 1 | |
75 | get_comments_number | filter | YES | 1 | |
76 | comments_number | filter | YES | 1 | |
77 | get_comment_ID | filter | YES | 1 | |
78 | get_comment_author | filter | YES | 1 | |
79 | get_comment_author_email | filter | YES | 1 | |
80 | get_comment_author_link | filter | YES | 1 | |
81 | get_comment_type | filter | YES | 1 | |
82 | get_comment_author_url | filter | YES | 1 | |
83 | get_comment_author_url_link | filter | YES | 1 | |
84 | get_comment_author_IP | filter | YES | 1 | |
85 | get_comment_text | filter | YES | 1 | |
86 | get_comment_excerpt | filter | YES | 1 | |
87 | get_comment_date | filter | YES | 1 | |
88 | get_comment_time | filter | YES | 1 | |
89 | comment_author_rss | filter | YES | 1 | |
90 | comment_text_rss | filter | YES | 1 | |
91 | post_comments_feed_link | filter | YES | 1 | |
92 | author_feed_link | filter | YES | 1 | |
93 | category_feed_link | filter | YES | 1 | |
94 | preprocess_comment | filter | YES | 1 | |
95 | pre_user_id | filter | YES | 1 | |
96 | pre_comment_author_name | filter | YES | 1 | |
97 | pre_comment_author_email | filter | YES | 1 | |
98 | pre_comment_author_url | filter | YES | 1 | |
99 | pre_comment_content | filter | YES | 1 | |
100 | comment_content_presave | filter | YES | 1 | |
101 | pre_comment_user_ip | filter | YES | 1 | |
102 | pre_comment_user_domain | filter | YES | 1 | |
103 | pre_comment_user_agent | filter | YES | 1 | |
104 | pre_comment_approved | filter | YES | 1 | |
105 | option_{$setting} | note | filter | YES | 1 |
106 | pre_option_{$option->option_name} | note | filter | YES | 1 |
107 | all_options | filter | YES | 1 | |
108 | theme_root | filter | YES | 1 | |
109 | theme_root_uri | filter | YES | 1 | |
110 | stylesheet | filter | YES | 1 | |
111 | stylesheet_directory | filter | YES | 1 | |
112 | stylesheet_directory_uri | filter | YES | 1 | |
113 | stylesheet_uri | filter | YES | 1 | |
114 | template | filter | YES | 1 | |
115 | template_directory | filter | YES | 1 | |
116 | template_directory_uri | filter | YES | 1 | |
117 | {$type}_template | note | filter | YES | 1 |
118 | category_template | filter | YES | 1 | |
119 | home_template | filter | YES | 1 | |
120 | page_template | filter | YES | 1 | |
121 | comments_popup_template | filter | YES | 1 | |
122 | link_rating | filter | YES | 1 | |
123 | comment_notification_text | filter | YES | 1 | |
124 | comment_notification_subject | filter | YES | 1 | |
125 | comment_notification_headers | filter | YES | 1 | |
126 | comment_moderation_text | filter | YES | 1 | |
127 | comment_moderation_subject | filter | YES | 1 | |
128 | the_author_email | filter | YES | 1 | |
129 | author_link | filter | YES | 1 | |
130 | category_link | filter | YES | 1 | |
131 | list_cats_exclusions | filter | YES | 1 | |
132 | loginout | filter | YES | 1 | |
133 | register | filter | YES | 1 | |
134 | get_the_time | filter | YES | 1 | |
135 | the_permalink | filter | YES | 1 | |
136 | post_link | filter | YES | 1 | |
137 | page_link | filter | YES | 1 | |
138 | year_link | filter | YES | 1 | |
139 | month_link | filter | YES | 1 | |
140 | day_link | filter | YES | 1 | |
141 | feed_link | filter | YES | 1 | |
142 | get_the_guid | filter | YES | 1 | |
143 | get_the_excerpt | filter | YES | 1 | |
144 | wp_list_pages | filter | YES | 1 | |
145 | locale | filter | YES | 1 |
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.