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 | atom_ns | action | no | 1 | |
2 | atom_head | action | no | 1 | |
3 | atom_entry | action | no | 1 | |
4 | comment_id_not_found | action | no | 1 | |
5 | comment_closed | action | no | 1 | |
6 | comment_on_draft | action | no | 1 | |
7 | commentrss2_item | action | YES | 1 | |
8 | {$hook} | note | action | YES | 2 |
9 | login_head | action | YES | 1 | |
10 | wp_logout | action | no | 1 | |
11 | lostpassword_post | action | YES | 1 | |
12 | retreive_password | action | no | 1 | |
13 | retrieve_password | action | no | 1 | |
14 | lost_password | action | no | 1 | |
15 | lostpassword_form | action | YES | 1 | |
16 | password_reset | action | no | 1 | |
17 | register_post | action | YES | 1 | |
18 | register_form | action | YES | 1 | |
19 | wp_authenticate | action | no | 1 | |
20 | wp_login | action | no | 1 | |
21 | login_form | action | YES | 1 | |
22 | publish_phone | action | no | 1 | |
23 | rdf_ns | action | no | 1 | |
24 | rdf_header | action | no | 1 | |
25 | rdf_item | action | no | 1 | |
26 | rss_head | action | no | 1 | |
27 | rss_item | action | no | 1 | |
28 | rss2_ns | action | no | 1 | |
29 | rss2_head | action | no | 2 | |
30 | rss2_item | action | no | 1 | |
31 | plugins_loaded | action | no | 1 | |
32 | sanitize_comment_cookies | action | no | 1 | |
33 | shutdown | action | no | 1 | |
34 | init | action | no | 1 | |
35 | trackback_post | action | no | 1 | |
36 | pingback_post | action | no | 1 | |
37 | wp_ajax_{$action} | note | action | YES | 1 |
38 | edit_category | action | no | 5 | |
39 | create_category | action | no | 1 | |
40 | add_category | action | no | 1 | |
41 | delete_category | action | no | 1 | |
42 | delete_user | action | no | 1 | |
43 | edit_link | action | no | 1 | |
44 | add_link | action | no | 1 | |
45 | delete_link | action | no | 1 | |
46 | admin_footer | action | no | 2 | |
47 | check_passwords | action | no | 1 | |
48 | admin_print_scripts-{$page_hook} | note | action | YES | 1 |
49 | admin_print_scripts-{$plugin_page} | note | action | YES | 1 |
50 | admin_print_scripts | action | YES | 2 | |
51 | admin_head-{$page_hook} | note | action | YES | 1 |
52 | admin_head-{$plugin_page} | note | action | YES | 1 |
53 | admin_head | action | no | 1 | |
54 | load-{$page_hook} | note | action | YES | 1 |
55 | {$page_hook} | note | action | no | 1 |
56 | load-{$plugin_page} | note | action | YES | 1 |
57 | load-{$pagenow} | note | action | YES | 1 |
58 | edit_category_form_pre | action | YES | 1 | |
59 | add_category_form_pre | action | YES | 1 | |
60 | edit_category_form | action | YES | 1 | |
61 | dbx_post_sidebar | action | no | 1 | |
62 | edit_form_advanced | action | no | 1 | |
63 | dbx_post_advanced | action | no | 1 | |
64 | simple_edit_form | action | no | 1 | |
65 | dbx_page_sidebar | action | no | 1 | |
66 | edit_page_form | action | no | 1 | |
67 | dbx_page_advanced | action | no | 1 | |
68 | restrict_manage_posts | action | YES | 1 | |
69 | manage_posts_custom_column | action | no | 1 | |
70 | activity_box_end | action | no | 1 | |
71 | manage_link_custom_column | action | YES | 1 | |
72 | admin_notices | action | no | 1 | |
73 | admin_menu | action | no | 1 | |
74 | blog_privacy_selector | action | YES | 1 | |
75 | activate_{$plugin} | note | action | no | 1 |
76 | deactivate_{$plugin} | note | action | no | 1 |
77 | personal_options_update | action | no | 1 | |
78 | profile_personal_options | action | no | 1 | |
79 | show_user_profile | action | no | 1 | |
80 | switch_theme | action | no | 3 | |
81 | upload_files_{$tab} | note | action | YES | 1 |
82 | edit_user_profile | action | no | 1 | |
83 | comment_form | action | no | 4 | |
84 | parse_request | action | YES | 1 | |
85 | send_headers | action | YES | 1 | |
86 | wp | action | YES | 1 | |
87 | comment_flood_trigger | action | no | 1 | |
88 | wp_blacklist_check | action | no | 1 | |
89 | delete_comment | action | no | 1 | |
90 | wp_set_comment_status | action | no | 2 | |
91 | comment_post | action | no | 1 | |
92 | edit_comment | action | no | 1 | |
93 | edit_post | action | no | 2 | |
94 | pre_ping | action | no | 1 | |
95 | update_option_{$option_name} | note | action | no | 1 |
96 | do_robotstxt | action | YES | 1 | |
97 | get_header | action | YES | 1 | |
98 | get_footer | action | YES | 1 | |
99 | wp_meta | action | no | 1 | |
100 | wp_head | action | no | 1 | |
101 | wp_footer | action | no | 1 | |
102 | set_current_user | action | no | 1 | |
103 | check_admin_referer | action | no | 1 | |
104 | check_ajax_referer | action | YES | 1 | |
105 | {$tag} | note | action | no | 2 |
106 | delete_post | action | no | 1 | |
107 | private_to_published | action | no | 1 | |
108 | publish_post | action | no | 1 | |
109 | xmlrpc_publish_post | action | YES | 1 | |
110 | publish_page | action | YES | 1 | |
111 | save_post | action | no | 1 | |
112 | wp_insert_post | action | no | 1 | |
113 | edit_attachment | action | no | 1 | |
114 | add_attachment | action | no | 1 | |
115 | delete_attachment | action | no | 1 | |
116 | parse_query | action | no | 2 | |
117 | pre_get_posts | action | no | 1 | |
118 | loop_start | action | no | 1 | |
119 | loop_end | action | no | 1 | |
120 | profile_update | action | no | 1 | |
121 | user_register | action | no | 1 | |
122 | generate_rewrite_rules | action | no | 1 | |
123 | wp_print_scripts | action | YES | 1 | |
124 | template_redirect | action | no | 1 | |
125 | do_robots | action | YES | 2 | |
126 | mce_options | action | no | 1 | |
127 | tinymce_before_init | action | no | 1 | |
128 | comment_post_redirect | filter | no | 1 | |
129 | the_title | filter | no | 9 | |
130 | the_title_rss | filter | no | 2 | |
131 | login_headerurl | filter | YES | 1 | |
132 | login_headertitle | filter | YES | 1 | |
133 | login_message | filter | YES | 1 | |
134 | login_errors | filter | YES | 1 | |
135 | user_registration_email | filter | YES | 1 | |
136 | registration_errors | filter | YES | 1 | |
137 | phone_content | filter | no | 1 | |
138 | xmlrpc_methods | filter | no | 1 | |
139 | content_save_pre | filter | no | 4 | |
140 | pre_upload_error | filter | YES | 1 | |
141 | wp_handle_upload | filter | YES | 2 | |
142 | get_users_drafts | filter | no | 1 | |
143 | get_others_drafts | filter | no | 1 | |
144 | get_editable_authors | filter | no | 1 | |
145 | pre_category_name | filter | no | 1 | |
146 | pre_category_nicename | filter | no | 1 | |
147 | pre_category_description | filter | no | 1 | |
148 | cat_id_filter | filter | YES | 1 | |
149 | pre_link_name | filter | no | 1 | |
150 | pre_link_url | filter | no | 1 | |
151 | pre_link_image | filter | no | 1 | |
152 | pre_link_target | filter | no | 1 | |
153 | pre_link_notes | filter | no | 1 | |
154 | pre_link_description | filter | no | 1 | |
155 | pre_link_rss | filter | no | 1 | |
156 | pre_link_rel | filter | no | 1 | |
157 | autosave_interval | filter | YES | 2 | |
158 | content_edit_pre | filter | no | 2 | |
159 | excerpt_edit_pre | filter | no | 1 | |
160 | title_edit_pre | filter | no | 1 | |
161 | default_content | filter | no | 1 | |
162 | default_title | filter | no | 1 | |
163 | default_excerpt | filter | no | 1 | |
164 | comment_edit_pre | filter | no | 1 | |
165 | cat_rows | filter | YES | 1 | |
166 | postmeta_form_limit | filter | YES | 1 | |
167 | wp_thumbnail_creation_size_limit | filter | YES | 1 | |
168 | wp_thumbnail_max_side_length | filter | YES | 1 | |
169 | wp_generate_attachment_metadata | filter | YES | 1 | |
170 | thumbnail_filename | filter | no | 1 | |
171 | wp_create_thumbnail | filter | YES | 1 | |
172 | comment_text | filter | no | 2 | |
173 | comment_edit_redirect | filter | no | 1 | |
174 | wp_create_file_in_uploads | filter | YES | 3 | |
175 | wp_delete_file | filter | YES | 3 | |
176 | uploading_iframe_src | filter | no | 2 | |
177 | manage_posts_columns | filter | no | 1 | |
178 | manage_link_columns | filter | YES | 1 | |
179 | preview_page_link | filter | YES | 1 | |
180 | preview_post_link | filter | no | 1 | |
181 | show_password_fields | filter | no | 3 | |
182 | wp_upload_tabs | filter | YES | 1 | |
183 | pre_user_login | filter | no | 2 | |
184 | kubrick_header_image | filter | no | 1 | |
185 | kubrick_header_color | filter | no | 1 | |
186 | kubrick_header_display | filter | no | 1 | |
187 | the_author | filter | no | 1 | |
188 | the_author_email | filter | no | 1 | |
189 | author_link | filter | no | 1 | |
190 | link_rating | filter | no | 1 | |
191 | get_bookmarks | filter | YES | 2 | |
192 | role_has_cap | filter | no | 1 | |
193 | user_has_cap | filter | no | 1 | |
194 | category_link | filter | no | 1 | |
195 | the_category | filter | no | 2 | |
196 | category_description | filter | no | 2 | |
197 | list_cats | filter | no | 4 | |
198 | wp_dropdown_cats | filter | YES | 1 | |
199 | wp_list_categories | filter | YES | 1 | |
200 | list_cats_exclusions | filter | no | 1 | |
201 | get_categories | filter | YES | 1 | |
202 | get_category | filter | no | 1 | |
203 | query_vars | filter | no | 1 | |
204 | request | filter | YES | 1 | |
205 | query_string | filter | no | 1 | |
206 | get_comment_author | filter | no | 1 | |
207 | comment_author | filter | no | 1 | |
208 | get_comment_author_email | filter | no | 1 | |
209 | author_email | filter | no | 1 | |
210 | comment_email | filter | no | 1 | |
211 | get_comment_author_link | filter | no | 1 | |
212 | get_comment_author_IP | filter | no | 1 | |
213 | get_comment_author_url | filter | no | 1 | |
214 | comment_url | filter | no | 1 | |
215 | get_comment_author_url_link | filter | no | 1 | |
216 | get_comment_date | filter | no | 1 | |
217 | get_comment_excerpt | filter | no | 1 | |
218 | comment_excerpt | filter | no | 1 | |
219 | get_comment_ID | filter | no | 1 | |
220 | get_comments_number | filter | no | 1 | |
221 | comments_number | filter | no | 1 | |
222 | get_comment_text | filter | no | 1 | |
223 | get_comment_time | filter | no | 1 | |
224 | get_comment_type | filter | no | 1 | |
225 | comments_array | filter | YES | 1 | |
226 | comments_template | filter | no | 1 | |
227 | pre_comment_author_name | filter | no | 2 | |
228 | pre_comment_author_email | filter | no | 2 | |
229 | pre_comment_author_url | filter | no | 2 | |
230 | comment_flood_filter | filter | YES | 1 | |
231 | pre_comment_approved | filter | no | 1 | |
232 | pre_user_id | filter | no | 1 | |
233 | pre_comment_user_agent | filter | no | 1 | |
234 | pre_comment_content | filter | no | 1 | |
235 | pre_comment_user_ip | filter | no | 1 | |
236 | preprocess_comment | filter | no | 1 | |
237 | comment_save_pre | filter | no | 1 | |
238 | the_content | filter | no | 3 | |
239 | the_excerpt | filter | no | 2 | |
240 | cron_schedules | filter | YES | 1 | |
241 | bloginfo_rss | filter | YES | 1 | |
242 | the_content_rss | filter | no | 1 | |
243 | the_excerpt_rss | filter | no | 1 | |
244 | comment_author_rss | filter | no | 1 | |
245 | comment_text_rss | filter | no | 1 | |
246 | post_comments_feed_link | filter | no | 1 | |
247 | author_feed_link | filter | no | 1 | |
248 | category_feed_link | filter | no | 1 | |
249 | the_category_rss | filter | no | 1 | |
250 | sanitize_user | filter | no | 1 | |
251 | sanitize_title | filter | no | 1 | |
252 | format_to_edit | filter | no | 1 | |
253 | format_to_post | filter | no | 1 | |
254 | richedit_pre | filter | no | 2 | |
255 | js_escape | filter | no | 1 | |
256 | attribute_escape | filter | no | 1 | |
257 | option_{$setting} | note | filter | no | 1 |
258 | pre_option_{$option->option_name} | note | filter | no | 1 |
259 | all_options | filter | no | 1 | |
260 | upload_dir | filter | no | 1 | |
261 | upload_mimes | filter | no | 1 | |
262 | explain_nonce_{$verb}-{$noun} | note | filter | YES | 1 |
263 | loginout | filter | no | 1 | |
264 | register | filter | no | 1 | |
265 | bloginfo | filter | no | 1 | |
266 | bloginfo_url | filter | no | 1 | |
267 | single_cat_title | filter | no | 3 | |
268 | single_post_title | filter | no | 2 | |
269 | wp_title | filter | no | 1 | |
270 | the_date | filter | no | 1 | |
271 | the_modified_date | filter | YES | 1 | |
272 | get_the_modified_date | filter | YES | 1 | |
273 | the_time | filter | no | 1 | |
274 | get_the_time | filter | no | 2 | |
275 | the_modified_time | filter | no | 1 | |
276 | get_the_modified_time | filter | no | 2 | |
277 | the_weekday | filter | no | 1 | |
278 | the_weekday_date | filter | no | 1 | |
279 | user_can_richedit | filter | YES | 1 | |
280 | the_editor | filter | YES | 1 | |
281 | the_editor_content | filter | YES | 1 | |
282 | locale | filter | no | 2 | |
283 | gettext | filter | no | 2 | |
284 | the_permalink | filter | no | 2 | |
285 | post_link | filter | no | 2 | |
286 | page_link | filter | no | 1 | |
287 | _get_page_link | filter | YES | 1 | |
288 | attachment_link | filter | no | 1 | |
289 | year_link | filter | no | 2 | |
290 | month_link | filter | no | 2 | |
291 | day_link | filter | no | 2 | |
292 | feed_link | filter | no | 1 | |
293 | get_previous_post_join | filter | YES | 1 | |
294 | get_previous_post_where | filter | YES | 1 | |
295 | get_previous_post_sort | filter | YES | 1 | |
296 | get_next_post_join | filter | YES | 1 | |
297 | get_next_post_where | filter | YES | 1 | |
298 | get_next_post_sort | filter | YES | 1 | |
299 | wp_redirect | filter | YES | 1 | |
300 | comment_notification_text | filter | no | 1 | |
301 | comment_notification_subject | filter | no | 1 | |
302 | comment_notification_headers | filter | no | 1 | |
303 | comment_moderation_text | filter | no | 1 | |
304 | comment_moderation_subject | filter | no | 1 | |
305 | {$tag} | note | filter | no | 1 |
306 | get_the_guid | filter | no | 1 | |
307 | get_the_excerpt | filter | no | 1 | |
308 | wp_dropdown_pages | filter | YES | 1 | |
309 | wp_list_pages_excludes | filter | YES | 1 | |
310 | wp_list_pages | filter | no | 1 | |
311 | icon_dir | filter | no | 2 | |
312 | attachment_max_dims | filter | no | 1 | |
313 | attachment_icon | filter | no | 1 | |
314 | attachment_innerHTML | filter | no | 1 | |
315 | prepend_attachment | filter | no | 1 | |
316 | get_attached_file | filter | YES | 1 | |
317 | update_attached_file | filter | YES | 1 | |
318 | content_filtered_save_pre | filter | no | 2 | |
319 | excerpt_save_pre | filter | no | 2 | |
320 | title_save_pre | filter | no | 2 | |
321 | category_save_pre | filter | no | 2 | |
322 | status_save_pre | filter | no | 1 | |
323 | name_save_pre | filter | no | 2 | |
324 | comment_status_pre | filter | no | 2 | |
325 | ping_status_pre | filter | no | 2 | |
326 | add_ping | filter | no | 1 | |
327 | get_enclosed | filter | no | 1 | |
328 | get_pung | filter | no | 1 | |
329 | get_to_ping | filter | no | 1 | |
330 | get_pages | filter | YES | 2 | |
331 | post_mime_type_pre | filter | no | 1 | |
332 | wp_get_attachment_metadata | filter | YES | 1 | |
333 | wp_update_attachment_metadata | filter | YES | 1 | |
334 | wp_get_attachment_url | filter | YES | 1 | |
335 | wp_get_attachment_thumb_file | filter | YES | 1 | |
336 | wp_get_attachment_thumb_url | filter | YES | 1 | |
337 | icon_dir_uri | filter | no | 1 | |
338 | wp_mime_type_icon | filter | YES | 1 | |
339 | posts_where | filter | no | 1 | |
340 | posts_join | filter | no | 1 | |
341 | posts_where_paged | filter | no | 1 | |
342 | posts_groupby | filter | no | 1 | |
343 | posts_join_paged | filter | no | 1 | |
344 | posts_orderby | filter | no | 1 | |
345 | posts_distinct | filter | YES | 1 | |
346 | posts_fields | filter | YES | 1 | |
347 | post_limits | filter | YES | 1 | |
348 | posts_request | filter | no | 1 | |
349 | found_posts_query | filter | YES | 1 | |
350 | found_posts | filter | YES | 1 | |
351 | the_posts | filter | no | 1 | |
352 | validate_username | filter | no | 1 | |
353 | pre_user_nicename | filter | no | 1 | |
354 | pre_user_url | filter | no | 1 | |
355 | pre_user_email | filter | no | 1 | |
356 | pre_user_display_name | filter | no | 1 | |
357 | pre_user_nickname | filter | no | 1 | |
358 | pre_user_first_name | filter | no | 1 | |
359 | pre_user_last_name | filter | no | 1 | |
360 | pre_user_description | filter | no | 1 | |
361 | update_user_query | filter | no | 1 | |
362 | create_user_query | filter | no | 1 | |
363 | post_rewrite_rules | filter | no | 1 | |
364 | date_rewrite_rules | filter | no | 1 | |
365 | root_rewrite_rules | filter | no | 1 | |
366 | comments_rewrite_rules | filter | no | 1 | |
367 | search_rewrite_rules | filter | no | 1 | |
368 | category_rewrite_rules | filter | no | 1 | |
369 | author_rewrite_rules | filter | no | 1 | |
370 | page_rewrite_rules | filter | no | 1 | |
371 | rewrite_rules_array | filter | no | 1 | |
372 | mod_rewrite_rules | filter | no | 1 | |
373 | rewrite_rules | filter | no | 1 | |
374 | tiny_mce_config_url | filter | YES | 1 | |
375 | stylesheet | filter | no | 1 | |
376 | stylesheet_directory | filter | no | 1 | |
377 | stylesheet_directory_uri | filter | no | 1 | |
378 | stylesheet_uri | filter | no | 1 | |
379 | locale_stylesheet_uri | filter | YES | 1 | |
380 | template | filter | no | 1 | |
381 | template_directory | filter | no | 1 | |
382 | template_directory_uri | filter | no | 1 | |
383 | theme_root | filter | no | 1 | |
384 | theme_root_uri | filter | no | 1 | |
385 | {$type}_template | note | filter | no | 1 |
386 | category_template | filter | no | 1 | |
387 | home_template | filter | no | 1 | |
388 | page_template | filter | no | 1 | |
389 | comments_popup_template | filter | no | 1 | |
390 | query | filter | no | 1 | |
391 | mce_valid_elements | filter | no | 1 | |
392 | mce_plugins | filter | no | 1 | |
393 | mce_buttons | filter | no | 1 | |
394 | mce_buttons_2 | filter | no | 1 | |
395 | mce_buttons_3 | filter | no | 1 | |
396 | mce_browsers | filter | no | 1 | |
397 | mce_css | 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.