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