Welcome, visitor! Log in
 

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.

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