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 | the_title | filter | no | 9 | |
2 | the_title_rss | filter | no | 2 | |
3 | phone_content | filter | no | 1 | |
4 | xmlrpc_methods | filter | no | 1 | |
5 | content_save_pre | filter | no | 4 | |
6 | get_users_drafts | filter | no | 1 | |
7 | get_others_drafts | filter | no | 1 | |
8 | get_editable_authors | filter | no | 1 | |
9 | content_edit_pre | filter | no | 1 | |
10 | excerpt_edit_pre | filter | no | 1 | |
11 | title_edit_pre | filter | no | 1 | |
12 | default_content | filter | no | 1 | |
13 | default_title | filter | no | 1 | |
14 | default_excerpt | filter | no | 1 | |
15 | comment_edit_pre | filter | no | 1 | |
16 | thumbnail_filename | filter | no | 1 | |
17 | uploading_iframe_src | filter | no | 2 | |
18 | manage_posts_columns | filter | no | 1 | |
19 | show_password_fields | filter | no | 3 | |
20 | kubrick_header_image | filter | no | 1 | |
21 | kubrick_header_color | filter | no | 1 | |
22 | kubrick_header_display | filter | no | 1 | |
23 | role_has_cap | filter | no | 1 | |
24 | user_has_cap | filter | no | 1 | |
25 | posts_where | filter | no | 1 | |
26 | posts_join | filter | no | 1 | |
27 | posts_where_paged | filter | no | 1 | |
28 | posts_groupby | filter | no | 1 | |
29 | posts_join_paged | filter | no | 1 | |
30 | posts_orderby | filter | no | 1 | |
31 | posts_request | filter | no | 1 | |
32 | the_posts | filter | no | 1 | |
33 | post_rewrite_rules | filter | no | 1 | |
34 | date_rewrite_rules | filter | no | 1 | |
35 | root_rewrite_rules | filter | no | 1 | |
36 | comments_rewrite_rules | filter | no | 1 | |
37 | search_rewrite_rules | filter | no | 1 | |
38 | category_rewrite_rules | filter | no | 1 | |
39 | author_rewrite_rules | filter | no | 1 | |
40 | page_rewrite_rules | filter | no | 1 | |
41 | rewrite_rules_array | filter | no | 1 | |
42 | mod_rewrite_rules | filter | no | 1 | |
43 | rewrite_rules | filter | no | 1 | |
44 | query_vars | filter | no | 1 | |
45 | query_string | filter | no | 1 | |
46 | comments_template | filter | no | 1 | |
47 | preprocess_comment | filter | no | 1 | |
48 | pre_user_id | filter | no | 1 | |
49 | pre_comment_user_agent | filter | no | 1 | |
50 | pre_comment_author_name | filter | no | 2 | |
51 | pre_comment_content | filter | no | 1 | |
52 | pre_comment_user_ip | filter | no | 1 | |
53 | pre_comment_author_url | filter | no | 2 | |
54 | pre_comment_author_email | filter | no | 2 | |
55 | pre_comment_approved | filter | no | 1 | |
56 | comment_save_pre | filter | no | 1 | |
57 | get_comments_number | filter | no | 1 | |
58 | comments_number | filter | no | 1 | |
59 | get_comment_ID | filter | no | 1 | |
60 | get_comment_author | filter | no | 1 | |
61 | comment_author | filter | no | 1 | |
62 | get_comment_author_email | filter | no | 1 | |
63 | author_email | filter | no | 1 | |
64 | get_comment_author_link | filter | no | 1 | |
65 | get_comment_type | filter | no | 1 | |
66 | get_comment_author_url | filter | no | 1 | |
67 | comment_url | filter | no | 1 | |
68 | comment_email | filter | no | 1 | |
69 | get_comment_author_url_link | filter | no | 1 | |
70 | get_comment_author_IP | filter | no | 1 | |
71 | get_comment_text | filter | no | 1 | |
72 | comment_text | filter | no | 1 | |
73 | get_comment_excerpt | filter | no | 1 | |
74 | comment_excerpt | filter | no | 1 | |
75 | get_comment_date | filter | no | 1 | |
76 | get_comment_time | filter | no | 1 | |
77 | the_content_rss | filter | no | 1 | |
78 | the_excerpt_rss | filter | no | 1 | |
79 | comment_author_rss | filter | no | 1 | |
80 | comment_text_rss | filter | no | 1 | |
81 | post_comments_feed_link | filter | no | 1 | |
82 | author_feed_link | filter | no | 1 | |
83 | category_feed_link | filter | no | 1 | |
84 | the_category_rss | filter | no | 1 | |
85 | sanitize_title | filter | no | 1 | |
86 | format_to_edit | filter | no | 1 | |
87 | format_to_post | filter | no | 1 | |
88 | the_content | filter | no | 3 | |
89 | richedit_pre | filter | no | 2 | |
90 | excerpt_save_pre | filter | no | 2 | |
91 | title_save_pre | filter | no | 2 | |
92 | category_save_pre | filter | no | 2 | |
93 | status_save_pre | filter | no | 1 | |
94 | name_save_pre | filter | no | 2 | |
95 | comment_status_pre | filter | no | 2 | |
96 | ping_status_pre | filter | no | 2 | |
97 | post_mime_type_pre | filter | no | 1 | |
98 | the_excerpt | filter | no | 2 | |
99 | get_pung | filter | no | 1 | |
100 | get_enclosed | filter | no | 1 | |
101 | get_to_ping | filter | no | 1 | |
102 | add_ping | filter | no | 1 | |
103 | upload_dir | filter | no | 1 | |
104 | upload_mimes | filter | no | 1 | |
105 | option_{$setting} | note | filter | no | 1 |
106 | pre_option_{$option->option_name} | note | filter | no | 1 |
107 | all_options | filter | no | 1 | |
108 | {$tag} | note | filter | no | 1 |
109 | theme_root | filter | no | 1 | |
110 | theme_root_uri | filter | no | 1 | |
111 | stylesheet | filter | no | 1 | |
112 | stylesheet_directory | filter | no | 1 | |
113 | stylesheet_directory_uri | filter | no | 1 | |
114 | stylesheet_uri | filter | no | 1 | |
115 | template | filter | no | 1 | |
116 | template_directory | filter | no | 1 | |
117 | template_directory_uri | filter | no | 1 | |
118 | {$type}_template | note | filter | no | 1 |
119 | category_template | filter | no | 1 | |
120 | home_template | filter | no | 1 | |
121 | page_template | filter | no | 1 | |
122 | comments_popup_template | filter | no | 1 | |
123 | link_rating | filter | no | 1 | |
124 | comment_notification_text | filter | no | 1 | |
125 | comment_notification_subject | filter | no | 1 | |
126 | comment_notification_headers | filter | no | 1 | |
127 | comment_moderation_text | filter | no | 1 | |
128 | comment_moderation_subject | filter | no | 1 | |
129 | update_user_query | filter | no | 1 | |
130 | create_user_query | filter | no | 1 | |
131 | the_author | filter | no | 1 | |
132 | the_author_email | filter | no | 1 | |
133 | author_link | filter | no | 1 | |
134 | category_link | filter | no | 1 | |
135 | the_category | filter | no | 2 | |
136 | category_description | filter | no | 2 | |
137 | list_cats | filter | no | 4 | |
138 | list_cats_exclusions | filter | no | 1 | |
139 | loginout | filter | no | 1 | |
140 | register | filter | no | 1 | |
141 | bloginfo | filter | no | 1 | |
142 | single_post_title | filter | no | 2 | |
143 | wp_title | filter | no | 1 | |
144 | the_date | filter | no | 1 | |
145 | the_time | filter | no | 1 | |
146 | get_the_time | filter | no | 2 | |
147 | the_modified_time | filter | no | 1 | |
148 | get_the_modified_time | filter | no | 2 | |
149 | the_weekday | filter | no | 1 | |
150 | the_weekday_date | filter | no | 1 | |
151 | the_permalink | filter | no | 2 | |
152 | post_link | filter | no | 2 | |
153 | page_link | filter | no | 1 | |
154 | attachment_link | filter | no | 1 | |
155 | year_link | filter | no | 2 | |
156 | month_link | filter | no | 2 | |
157 | day_link | filter | no | 2 | |
158 | feed_link | filter | no | 1 | |
159 | get_the_guid | filter | no | 1 | |
160 | get_the_excerpt | filter | no | 1 | |
161 | wp_list_pages | filter | no | 1 | |
162 | icon_dir | filter | no | 1 | |
163 | icon_dir_uri | filter | no | 1 | |
164 | attachment_max_dims | filter | no | 1 | |
165 | attachment_icon | filter | no | 1 | |
166 | attachment_innerHTML | filter | no | 1 | |
167 | prepend_attachment | filter | no | 1 | |
168 | locale | filter | no | 1 | |
169 | mce_theme | filter | no | 1 | |
170 | mce_plugins | filter | no | 1 | |
171 | mce_valid_elements | filter | no | 1 | |
172 | mce_buttons | filter | no | 1 | |
173 | mce_buttons_2 | filter | no | 1 | |
174 | mce_buttons_3 | filter | no | 1 | |
175 | mce_browsers | filter | no | 1 | |
176 | atom_ns | action | no | 1 | |
177 | atom_head | action | no | 1 | |
178 | atom_entry | action | no | 1 | |
179 | comment_id_not_found | action | no | 1 | |
180 | comment_closed | action | no | 1 | |
181 | comment_on_draft | action | no | 1 | |
182 | wp_logout | action | no | 1 | |
183 | lost_password | action | no | 1 | |
184 | retreive_password | action | no | 1 | |
185 | retrieve_password | action | no | 1 | |
186 | password_reset | action | no | 1 | |
187 | wp_authenticate | action | no | 1 | |
188 | wp_login | action | no | 1 | |
189 | publish_phone | action | no | 1 | |
190 | rdf_ns | action | no | 1 | |
191 | rdf_header | action | no | 1 | |
192 | rdf_item | action | no | 1 | |
193 | rss_head | action | no | 1 | |
194 | rss_item | action | no | 1 | |
195 | rss2_ns | action | no | 1 | |
196 | rss2_head | action | no | 1 | |
197 | rss2_item | action | no | 1 | |
198 | plugins_loaded | action | no | 1 | |
199 | shutdown | action | no | 1 | |
200 | init | action | no | 1 | |
201 | trackback_post | action | no | 1 | |
202 | pingback_post | action | no | 1 | |
203 | edit_category | action | no | 1 | |
204 | create_category | action | no | 1 | |
205 | add_category | action | no | 1 | |
206 | delete_category | action | no | 1 | |
207 | delete_user | action | no | 1 | |
208 | edit_link | action | no | 1 | |
209 | add_link | action | no | 1 | |
210 | delete_link | action | no | 1 | |
211 | admin_footer | action | no | 2 | |
212 | check_passwords | action | no | 1 | |
213 | switch_theme | action | no | 3 | |
214 | admin_head | action | no | 1 | |
215 | {$page_hook} | note | action | no | 1 |
216 | edit_form_advanced | action | no | 1 | |
217 | simple_edit_form | action | no | 1 | |
218 | edit_page_form | action | no | 1 | |
219 | manage_posts_custom_column | action | no | 1 | |
220 | activity_box_end | action | no | 1 | |
221 | admin_menu | action | no | 1 | |
222 | activate_{$plugin} | note | action | no | 1 |
223 | deactivate_{$plugin} | note | action | no | 1 |
224 | delete_comment | action | no | 2 | |
225 | personal_options_update | action | no | 1 | |
226 | show_user_profile | action | no | 1 | |
227 | profile_personal_options | action | no | 1 | |
228 | edit_user_profile | action | no | 1 | |
229 | comment_form | action | no | 4 | |
230 | parse_query | action | no | 2 | |
231 | pre_get_posts | action | no | 1 | |
232 | loop_start | action | no | 1 | |
233 | loop_end | action | no | 1 | |
234 | generate_rewrite_rules | action | no | 1 | |
235 | comment_post | action | no | 1 | |
236 | comment_flood_trigger | action | no | 1 | |
237 | edit_comment | action | no | 1 | |
238 | wp_set_comment_status | action | no | 2 | |
239 | pre_ping | action | no | 1 | |
240 | private_to_published | action | no | 1 | |
241 | edit_post | action | no | 1 | |
242 | publish_post | action | no | 1 | |
243 | save_post | action | no | 1 | |
244 | wp_insert_post | action | no | 1 | |
245 | edit_attachment | action | no | 1 | |
246 | add_attachment | action | no | 1 | |
247 | delete_attachment | action | no | 1 | |
248 | delete_post | action | no | 1 | |
249 | wp_blacklist_check | action | no | 1 | |
250 | {$tag} | note | action | no | 1 |
251 | wp_head | action | no | 1 | |
252 | wp_footer | action | no | 1 | |
253 | check_admin_referer | action | no | 1 | |
254 | profile_update | action | no | 1 | |
255 | user_register | action | no | 1 | |
256 | wp_meta | action | no | 1 | |
257 | template_redirect | action | no | 1 | |
258 | mce_options | action | no | 1 | |
259 | tinymce_before_init | action | no | 1 | |
260 | comment_post_redirect | filter | YES | 1 | |
261 | pre_category_name | filter | YES | 1 | |
262 | pre_category_nicename | filter | YES | 1 | |
263 | pre_category_description | filter | YES | 1 | |
264 | pre_link_name | filter | YES | 1 | |
265 | pre_link_url | filter | YES | 1 | |
266 | pre_link_image | filter | YES | 1 | |
267 | pre_link_target | filter | YES | 1 | |
268 | pre_link_notes | filter | YES | 1 | |
269 | pre_link_description | filter | YES | 1 | |
270 | pre_link_rss | filter | YES | 1 | |
271 | pre_link_rel | filter | YES | 1 | |
272 | preview_post_link | filter | YES | 1 | |
273 | comment_edit_redirect | filter | YES | 1 | |
274 | sanitize_user | filter | YES | 1 | |
275 | js_escape | filter | YES | 1 | |
276 | attribute_escape | filter | YES | 1 | |
277 | content_filtered_save_pre | filter | YES | 2 | |
278 | get_category | filter | YES | 1 | |
279 | validate_username | filter | YES | 1 | |
280 | pre_user_login | filter | YES | 1 | |
281 | pre_user_nicename | filter | YES | 1 | |
282 | pre_user_url | filter | YES | 1 | |
283 | pre_user_email | filter | YES | 1 | |
284 | pre_user_display_name | filter | YES | 1 | |
285 | pre_user_nickname | filter | YES | 1 | |
286 | pre_user_first_name | filter | YES | 1 | |
287 | pre_user_last_name | filter | YES | 1 | |
288 | pre_user_description | filter | YES | 1 | |
289 | bloginfo_url | filter | YES | 1 | |
290 | single_cat_title | filter | YES | 2 | |
291 | query | filter | YES | 1 | |
292 | gettext | filter | YES | 2 | |
293 | sanitize_comment_cookies | action | YES | 1 | |
294 | dbx_post_sidebar | action | YES | 1 | |
295 | dbx_post_advanced | action | YES | 1 | |
296 | dbx_page_sidebar | action | YES | 1 | |
297 | dbx_page_advanced | action | YES | 1 | |
298 | admin_notices | action | YES | 1 | |
299 | update_option_{$option_name} | note | action | YES | 1 |
300 | set_current_user | action | 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.