Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

All plugin hooks in WordPress 2.6

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

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.