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