Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

All plugin hooks in WordPress 2.5

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 comment_post_redirect filter no 1
2 link_title filter no 1
3 login_headerurl filter no 1
4 login_headertitle filter no 1
5 login_message filter no 1
6 login_errors filter no 1
7 login_messages filter YES 1
8 user_registration_email filter no 1
9 registration_errors filter no 1
10 phone_content filter no 1
11 atom_service_url filter YES 1
12 xmlrpc_methods filter no 1
13 pre_upload_error filter no 1
14 xmlrpc_text_filters filter no 1
15 pre_remote_source filter YES 1
16 update_footer filter no 1
17 admin_body_class filter no 1
18 async_upload_{$type} note filter YES 1
19 comment_edit_redirect filter no 1
20 comment_status_links filter YES 1
21 manage_pages_query filter YES 1
22 dashboard_count_sentence filter YES 1
23 manage_link_columns filter no 1
24 media_upload_default_type filter YES 1
25 media_upload_default_tab filter YES 1
26 plugin_action_links filter YES 1
27 request_filesystem_credentials filter YES 1
28 import_post_meta_key filter YES 1
29 import_allow_create_users filter YES 1
30 import_allow_fetch_attachments filter YES 1
31 import_attachment_size_limit filter YES 1
32 comment_edit_pre filter no 1
33 dashboard_incoming_links_link filter no 1
34 dashboard_incoming_links_feed filter no 1
35 dashboard_primary_link filter YES 1
36 dashboard_primary_feed filter no 1
37 dashboard_primary_title filter no 1
38 dashboard_secondary_link filter no 1
39 dashboard_secondary_feed filter no 1
40 dashboard_secondary_title filter no 1
41 wp_dashboard_widgets filter YES 1
42 wp_dashboard_widget_links_{$widget_id} note filter YES 1
43 the_content_export filter YES 1
44 wp_create_thumbnail filter no 1
45 wp_generate_attachment_metadata filter no 1
46 wp_read_image_metadata_types filter YES 1
47 wp_read_image_metadata filter YES 1
48 file_is_displayable_image filter YES 1
49 media_upload_tabs filter YES 1
50 media_buttons_context filter YES 1
51 image_upload_iframe_src filter YES 1
52 video_upload_iframe_src filter YES 1
53 audio_upload_iframe_src filter YES 1
54 attachment_fields_to_save filter YES 1
55 media_send_to_editor filter YES 1
56 attachment_fields_to_edit filter YES 1
57 media_meta filter YES 1
58 flash_uploader filter YES 1
59 got_rewrite filter YES 1
60 default_content filter no 1
61 default_title filter no 1
62 default_excerpt filter no 1
63 post_stati filter YES 1
64 post_mime_types filter YES 1
65 wp_check_post_lock_window filter YES 1
66 tags_to_edit filter no 1
67 cat_row filter no 1
68 link_cat_row filter YES 1
69 get_nested_categories filter no 1
70 term_name filter YES 1
71 tag_rows filter YES 1
72 manage_posts_columns filter no 1
73 manage_media_columns filter YES 1
74 manage_pages_columns filter YES 1
75 postmeta_form_limit filter no 1
76 upload_size_limit filter YES 1
77 import_upload_size_limit filter no 1
78 get_editable_authors filter no 1
79 get_others_drafts filter no 1
80 get_users_drafts filter no 1
81 kubrick_header_image filter no 1
82 kubrick_header_color filter no 1
83 kubrick_header_display filter no 1
84 the_author filter no 1
85 the_author_email filter no 1
86 author_link filter no 1
87 wp_list_bookmarks filter YES 1
88 redirect_canonical filter no 1
89 role_has_cap filter no 1
90 user_has_cap filter no 1
91 category_link filter no 1
92 wp_dropdown_cats filter no 1
93 wp_list_categories filter no 1
94 wp_tag_cloud filter no 1
95 wp_generate_tag_cloud filter no 1
96 tag_link filter no 1
97 get_the_tags filter no 1
98 the_tags filter no 1
99 term_links-{$taxonomy} note filter YES 1
100 get_tags filter no 1
101 query_vars filter no 1
102 request filter no 1
103 query_string filter no 1
104 category_description filter no 1
105 get_comment_author filter no 1
106 comment_author filter no 1
107 get_comment_author_email filter no 1
108 author_email filter no 1
109 comment_email filter no 1
110 get_comment_author_link filter no 1
111 get_comment_author_IP filter no 1
112 get_comment_author_url filter no 1
113 comment_url filter no 1
114 get_comment_author_url_link filter no 1
115 get_comment_date filter no 1
116 get_comment_excerpt filter no 1
117 comment_excerpt filter no 1
118 get_comment_ID filter no 1
119 get_comments_number filter no 1
120 comments_number filter no 1
121 get_comment_text filter no 1
122 comment_text filter no 1
123 get_comment_time filter no 1
124 get_comment_type filter no 1
125 trackback_url filter no 1
126 comments_open filter YES 1
127 pings_open filter YES 1
128 comments_array filter no 1
129 comments_template filter no 1
130 comments_popup_link_attributes filter YES 1
131 get_comment filter no 1
132 pre_comment_approved filter no 1
133 comment_flood_filter filter no 1
134 pre_user_id filter no 1
135 pre_comment_user_agent filter no 1
136 pre_comment_content filter no 1
137 pre_comment_user_ip filter no 1
138 preprocess_comment filter no 1
139 comment_save_pre filter no 1
140 cron_schedules filter no 1
141 bloginfo_rss filter no 1
142 default_feed filter YES 1
143 get_wp_title_rss filter no 1
144 wp_title_rss filter no 1
145 the_content_rss filter no 1
146 the_excerpt_rss filter no 1
147 the_permalink_rss filter no 1
148 comment_author_rss filter no 1
149 comment_text_rss filter no 1
150 the_category_rss filter no 1
151 rss_enclosure filter no 1
152 atom_enclosure filter no 1
153 sanitize_user filter no 1
154 sanitize_title filter no 1
155 format_to_edit filter no 1
156 format_to_post filter no 1
157 htmledit_pre filter YES 1
158 clean_url filter no 1
159 js_escape filter no 1
160 attribute_escape filter no 1
161 tag_escape filter YES 1
162 sanitize_option_{$option} note filter no 1
163 wp_parse_str filter no 1
164 wp_sprintf filter YES 1
165 wp_sprintf_l filter YES 1
166 pre_option_{$setting} note filter no 1
167 option_{$setting} note filter no 1
168 pre_option_{$option->option_name} note filter no 1
169 all_options filter no 1
170 status_header filter no 1
171 upload_dir filter no 1
172 ext2type filter YES 1
173 upload_mimes filter no 1
174 explain_nonce_{$verb}-{$noun} note filter no 1
175 deprecated_function_trigger_error filter YES 1
176 deprecated_file_trigger_error filter YES 1
177 loginout filter no 1
178 register filter no 1
179 bloginfo_url filter no 1
180 bloginfo filter no 1
181 wp_title filter no 1
182 getarchives_where filter no 1
183 getarchives_join filter no 1
184 the_date filter no 1
185 the_modified_date filter no 1
186 get_the_modified_date filter no 1
187 the_time filter no 1
188 the_modified_time filter no 1
189 the_weekday filter no 1
190 the_weekday_date filter no 1
191 user_can_richedit filter no 1
192 wp_default_editor filter YES 1
193 the_editor filter no 1
194 the_editor_content filter no 1
195 get_search_query filter no 1
196 the_search_query filter no 1
197 language_attributes filter YES 1
198 wp_admin_css_uri filter no 1
199 wp_generator_type filter YES 1
200 the_generator filter YES 1
201 get_the_generator_{$type} note filter YES 1
202 pre_kses filter no 1
203 gettext filter no 1
204 ngettext filter no 1
205 the_permalink filter no 1
206 user_trailingslashit filter no 1
207 page_link filter no 1
208 _get_page_link filter no 1
209 attachment_link filter no 1
210 feed_link filter no 1
211 post_comments_feed_link filter no 1
212 author_feed_link filter no 1
213 category_feed_link filter no 1
214 tag_feed_link filter no 1
215 get_edit_post_link filter no 1
216 edit_post_link filter no 1
217 get_edit_comment_link filter no 1
218 edit_comment_link filter no 1
219 get_{$adjacent}_post_join note filter YES 1
220 get_{$adjacent}_post_where note filter YES 1
221 get_{$adjacent}_post_sort note filter YES 1
222 get_pagenum_link filter YES 1
223 editor_max_image_size filter YES 1
224 image_downsize filter YES 1
225 jpeg_quality filter YES 1
226 post_gallery filter YES 1
227 gallery_style filter YES 1
228 wp_mail filter no 1
229 wp_mail_from filter no 1
230 wp_mail_from_name filter no 1
231 wp_mail_content_type filter no 1
232 wp_mail_charset filter no 1
233 wp_authenticate_user filter YES 1
234 auth_cookie filter YES 1
235 wp_redirect filter no 1
236 wp_redirect_status filter YES 1
237 allowed_redirect_hosts filter no 1
238 comment_notification_text filter no 1
239 comment_notification_subject filter no 1
240 comment_notification_headers filter no 1
241 comment_moderation_text filter no 1
242 comment_moderation_subject filter no 1
243 nonce_life filter YES 1
244 salt filter YES 1
245 get_avatar filter YES 1
246 {$tag} note filter no 1
247 get_the_guid filter no 1
248 get_the_excerpt filter no 1
249 the_meta_key filter no 1
250 wp_dropdown_pages filter no 1
251 wp_list_pages_excludes filter no 1
252 wp_list_pages filter no 1
253 attachment_max_dims filter no 1
254 attachment_icon filter no 1
255 attachment_innerHTML filter no 1
256 prepend_attachment filter no 1
257 get_attached_file filter no 1
258 update_attached_file filter no 1
259 {$field_no_prefix}_edit_pre note filter no 1
260 edit_post_{$field} note filter no 1
261 {$field_no_prefix}_save_pre note filter no 1
262 pre_post_{$field} note filter no 1
263 {$field}_pre note filter no 1
264 post_{$field} note filter no 1
265 add_ping filter no 1
266 get_enclosed filter no 1
267 get_pung filter no 1
268 get_to_ping filter no 1
269 wp_get_attachment_metadata filter no 1
270 wp_update_attachment_metadata filter no 1
271 wp_get_attachment_url filter no 1
272 wp_get_attachment_thumb_file filter no 1
273 wp_get_attachment_thumb_url filter no 1
274 icon_dir_uri filter no 1
275 icon_dirs filter YES 1
276 wp_mime_type_icon filter no 1
277 pub_priv_sql_capability filter no 1
278 get_lastpostdate filter no 1
279 get_lastpostmodified filter no 1
280 posts_where filter no 1
281 posts_join filter no 1
282 comment_feed_groupby filter no 1
283 posts_where_paged filter no 1
284 posts_groupby filter no 1
285 posts_join_paged filter no 1
286 posts_orderby filter no 1
287 posts_distinct filter no 1
288 posts_fields filter no 1
289 post_limits filter no 1
290 posts_where_request filter YES 1
291 posts_groupby_request filter YES 1
292 posts_join_request filter YES 1
293 posts_orderby_request filter YES 1
294 posts_distinct_request filter YES 1
295 posts_fields_request filter YES 1
296 post_limits_request filter YES 1
297 posts_request filter no 1
298 posts_results filter no 1
299 found_posts_query filter no 1
300 found_posts filter no 1
301 the_posts filter no 1
302 validate_username filter no 1
303 pre_user_nicename filter no 1
304 pre_user_url filter no 1
305 pre_user_email filter no 1
306 pre_user_display_name filter no 1
307 pre_user_nickname filter no 1
308 pre_user_first_name filter no 1
309 pre_user_last_name filter no 1
310 pre_user_description filter no 1
311 url_to_postid filter no 1
312 post_rewrite_rules filter no 1
313 date_rewrite_rules filter no 1
314 root_rewrite_rules filter no 1
315 comments_rewrite_rules filter no 1
316 search_rewrite_rules filter no 1
317 category_rewrite_rules filter no 1
318 tag_rewrite_rules filter no 1
319 author_rewrite_rules filter no 1
320 page_rewrite_rules filter no 1
321 rewrite_rules_array filter no 1
322 mod_rewrite_rules filter no 1
323 rewrite_rules filter no 1
324 visual_editor filter YES 1
325 print_scripts_array filter no 1
326 script_loader_src filter no 1
327 get_term filter no 1
328 get_{$taxonomy} note filter no 1
329 list_terms_exclusions filter no 1
330 edit_term_{$field} note filter no 1
331 edit_{$taxonomy}_{$field} note filter no 1
332 pre_term_{$field} note filter no 1
333 pre_{$taxonomy}_{$field} note filter no 1
334 pre_category_nicename filter no 1
335 term_{$field}_rss note filter no 1
336 {$taxonomy}_{$field}_rss note filter YES 1
337 term_{$field} note filter no 1
338 {$taxonomy}_{$field} note filter no 1
339 term_link filter YES 1
340 stylesheet filter no 1
341 stylesheet_directory filter no 1
342 stylesheet_directory_uri filter no 1
343 stylesheet_uri filter no 1
344 locale_stylesheet_uri filter no 1
345 template filter no 1
346 template_directory filter no 1
347 template_directory_uri filter no 1
348 theme_root filter no 1
349 theme_root_uri filter no 1
350 {$type}_template note filter no 1
351 category_template filter no 1
352 tag_template filter no 1
353 home_template filter no 1
354 page_template filter no 1
355 comments_popup_template filter no 1
356 get_user_option_{$option} note filter YES 1
357 wp_dropdown_users filter no 1
358 dynamic_sidebar_params filter YES 1
359 widget_text filter no 1
360 query filter no 1
361 mce_css filter no 1
362 mce_spellchecker_languages filter YES 1
363 mce_external_plugins filter YES 1
364 mce_external_languages filter YES 1
365 mce_buttons filter no 1
366 mce_buttons_2 filter no 1
367 mce_buttons_3 filter no 1
368 mce_buttons_4 filter YES 1
369 tiny_mce_before_init filter YES 1
370 comment_id_not_found action no 1
371 comment_closed action no 1
372 comment_on_draft action no 1
373 login_head action no 1
374 lostpassword_post action no 1
375 retreive_password action no 1
376 retrieve_password action no 1
377 retrieve_password_key action YES 1
378 password_reset action no 1
379 register_post action no 1
380 lost_password action no 1
381 lostpassword_form action no 1
382 register_form action no 1
383 login_form action no 1
384 publish_phone action no 1
385 plugins_loaded action no 1
386 sanitize_comment_cookies action no 1
387 shutdown action no 1
388 init action no 1
389 trackback_post action no 1
390 pingback_post action no 1
391 wp_ajax_{$action} note action no 1
392 in_admin_footer action YES 1
393 admin_print_scripts-{$page_hook} note action no 1
394 admin_print_scripts-{$plugin_page} note action no 1
395 admin_head-{$page_hook} note action no 1
396 admin_head-{$plugin_page} note action no 1
397 admin_init action YES 1
398 load-{$page_hook} note action no 1
399 {$page_hook} note action no 1
400 load-{$plugin_page} note action no 1
401 load-{$pagenow} note action no 1
402 manage_media_media_column action YES 1
403 manage_media_custom_column action YES 1
404 edit_category_form_pre action no 1
405 add_category_form_pre action no 1
406 edit_category_form action no 1
407 manage_comments_nav action YES 1
408 post_relatedlinks_list action YES 1
409 submitpost_box action YES 1
410 edit_form_advanced action no 1
411 dbx_post_advanced action no 1
412 dbx_post_sidebar action no 1
413 comment_relatedlinks_list action YES 1
414 submitcomment_box action YES 1
415 simple_edit_form action no 1
416 edit_link_category_form_pre action no 1
417 add_link_category_form_pre action no 1
418 edit_link_category_form action no 1
419 link_relatedlinks_list action YES 1
420 submitlink_box action YES 1
421 page_relatedlinks_list action YES 1
422 submitpage_box action YES 1
423 edit_page_form action no 1
424 manage_posts_custom_column action no 1
425 edit_tag_form_pre action YES 1
426 add_tag_form_pre action YES 1
427 edit_tag_form action YES 1
428 rightnow_end action YES 1
429 activity_box_end action no 1
430 wp_delete_file action no 1
431 manage_link_custom_column action no 1
432 media_upload_{$type} note action YES 1
433 media_upload_{$tab} note action YES 1
434 dashmenu action YES 1
435 adminmenu action YES 1
436 sidemenu action YES 1
437 admin_notices action no 1
438 _admin_menu action no 1
439 admin_menu action no 1
440 admin_page_access_denied action YES 1
441 blog_privacy_selector action no 1
442 after_plugin_row action no 1
443 personal_options_update action no 1
444 profile_personal_options action no 1
445 show_user_profile action no 1
446 edit_user_profile action no 1
447 sidebar_admin_setup action no 1
448 sidebar_admin_page action no 1
449 import_post_added action YES 1
450 import_post_meta action YES 1
451 import_start action YES 1
452 import_end action YES 1
453 delete_link action no 1
454 deleted_link action no 1
455 edit_link action no 1
456 add_link action no 1
457 wp_dashboard_setup action YES 1
458 export_wp action no 1
459 admin_head_{$content_func} note action YES 1
460 activate_{$plugin} note action no 1
461 deactivate_{$plugin} note action no 1
462 manage_pages_custom_column action YES 1
463 check_passwords action no 1
464 delete_user action no 1
465 akismet_spam_caught action YES 1
466 akismet_tabs action YES 1
467 parse_request action no 1
468 send_headers action no 1
469 wp action no 1
470 check_comment_flood action no 1
471 comment_flood_trigger action no 1
472 wp_blacklist_check action no 1
473 delete_comment action no 1
474 comment_post action no 1
475 edit_comment action no 1
476 wp_update_comment_count action no 1
477 pre_ping action no 1
478 comment_atom_entry action no 1
479 atom_head action no 1
480 atom_entry action no 1
481 rdf_ns action no 1
482 rdf_header action no 1
483 rdf_item action no 1
484 rss_head action no 1
485 rss_item action no 1
486 commentsrss2_head action no 1
487 commentrss2_item action no 1
488 rss2_ns action no 1
489 rss2_item action no 1
490 update_option_{$option_name} note action no 1
491 add_option_{$name} note action YES 1
492 do_robotstxt action no 1
493 deprecated_function_run action YES 1
494 deprecated_file_included action YES 1
495 get_header action no 1
496 get_footer action no 1
497 get_sidebar action no 1
498 wp_meta action no 1
499 wp_head action no 1
500 wp_footer action no 1
501 media_buttons action YES 1
502 set_current_user action no 1
503 phpmailer_init action no 1
504 wp_logout action no 1
505 set_auth_cookie action YES 1
506 check_admin_referer action no 1
507 check_ajax_referer action no 1
508 delete_post action no 1
509 deleted_post action no 1
510 pre_post_update action YES 1
511 transition_post_status action no 1
512 {$old_status}_to_{$new_status} note action no 1
513 {$new_status}_{$post->post_type} note action no 1
514 edit_attachment action no 1
515 add_attachment action no 1
516 delete_attachment action no 1
517 clean_post_cache action YES 1
518 clean_page_cache action YES 1
519 private_to_published action no 1
520 xmlrpc_publish_post action no 1
521 app_publish_post action no 1
522 parse_query action no 1
523 pre_get_posts action no 1
524 posts_selection action no 1
525 loop_start action no 1
526 loop_end action no 1
527 comment_loop_start action no 1
528 profile_update action no 1
529 user_register action no 1
530 generate_rewrite_rules action no 1
531 load_feed_engine action no 1
532 wp_print_scripts action no 1
533 delete_term action YES 1
534 delete_{$taxonomy} note action no 1
535 create_term action no 1
536 create_{$taxonomy} note action no 1
537 created_term action no 1
538 created_{$taxonomy} note action no 1
539 edit_term action no 1
540 edit_{$taxonomy} note action no 1
541 edited_term action no 1
542 edited_{$taxonomy} note action no 1
543 clean_object_term_cache action YES 1
544 clean_term_cache action YES 1
545 template_redirect action no 1
546 switch_theme action no 1
547 wp_authenticate action no 1
548 wp_login action no 1
549 widgets_init action no 1
550 mce_options action no 1
551 content_save_pre filter no 2
552 wp_handle_upload filter no 2
553 wp_create_file_in_uploads filter no 2
554 preview_post_link filter no 2
555 cat_rows filter no 2
556 show_password_fields filter no 2
557 pre_user_login filter no 2
558 intermediate_image_sizes filter YES 2
559 image_send_to_editor filter YES 2
560 get_bookmarks filter no 2
561 edit_{$field} note filter no 2
562 pre_{$field} note filter no 2
563 {$field} note filter no 2
564 pre_comment_author_name filter no 2
565 pre_comment_author_email filter no 2
566 pre_comment_author_url filter no 2
567 the_excerpt filter no 2
568 get_bloginfo_rss filter no 2
569 richedit_pre filter no 2
570 single_tag_title filter no 2
571 single_post_title filter no 2
572 get_the_time filter no 2
573 get_the_modified_time filter no 2
574 wp_admin_css filter no 2
575 locale filter no 2
576 post_link filter no 2
577 year_link filter no 2
578 month_link filter no 2
579 day_link filter no 2
580 search_feed_link filter YES 2
581 check_password filter YES 2
582 comment_feed_join filter no 2
583 comment_feed_where filter no 2
584 tiny_mce_version filter YES 2
585 term_id_filter filter no 2
586 taxonomy_template filter YES 2
587 theme_mod_{$name} note filter no 2
588 wp_create_file_in_uploads action no 2
589 {$hook} note action no 2
590 admin_footer action no 2
591 admin_print_scripts action no 2
592 admin_head action no 2
593 restrict_manage_posts action no 2
594 rss2_head action no 2
595 wp_set_comment_status action no 2
596 atom_ns action no 2
597 {$tag} note action no 2
598 save_post action no 2
599 wp_insert_post action no 2
600 do_robots action no 2
601 the_content filter no 3
602 single_cat_title filter no 3
603 icon_dir filter no 3
604 get_pages filter no 3
605 get_terms filter no 3
606 admin_xml_ns action no 3
607 edit_post action no 3
608 wp_login_failed action YES 3
609 link_category filter no 4
610 the_title_rss filter no 4
611 list_cats filter no 4
612 comment_form action no 4
613 wp_delete_file filter no 5
614 update_feedback filter YES 5
615 the_category filter no 6
616 import_done action no 9
617 the_title filter no 11
618 xmlrpc_call action YES 38

Important warning about variable hooks

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.