Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

All plugin hooks in WordPress 2.3

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 YES 1
7 add_ping filter no 1
8 admin_body_class filter YES 1
9 admin_footer action no 2
10 admin_head action no 1
11 admin_head-{$page_hook} note action no 1
12 admin_head-{$plugin_page} note action no 1
13 admin_menu action no 1
14 admin_notices action no 1
15 admin_print_scripts action no 2
16 admin_print_scripts-{$page_hook} note action no 1
17 admin_print_scripts-{$plugin_page} note action no 1
18 admin_xml_ns action no 2
19 after_plugin_row action YES 1
20 allowed_redirect_hosts filter YES 1
21 all_options filter no 1
22 app_publish_post action no 1
23 atom_enclosure filter no 1
24 atom_entry action no 1
25 atom_head action no 1
26 atom_ns action no 2
27 attachment_icon filter no 1
28 attachment_innerHTML filter no 1
29 attachment_link filter no 1
30 attachment_max_dims filter no 1
31 attribute_escape filter no 1
32 author_email filter no 1
33 author_feed_link filter no 1
34 author_link filter no 1
35 author_rewrite_rules filter no 1
36 autosave_interval filter no 2
37 bloginfo filter no 1
38 bloginfo_rss filter no 1
39 bloginfo_url filter no 1
40 blog_privacy_selector action no 1
41 category_description filter no 1
42 category_feed_link filter no 1
43 category_link filter no 1
44 category_rewrite_rules filter no 1
45 category_template filter no 1
46 cat_row filter YES 1
47 cat_rows filter no 2
48 check_admin_referer action no 1
49 check_ajax_referer action no 1
50 check_comment_flood action YES 1
51 check_passwords action no 1
52 clean_url filter YES 1
53 commentrss2_item action no 1
54 commentsrss2_head action YES 1
55 comments_array filter no 1
56 comments_number filter no 1
57 comments_popup_template filter no 1
58 comments_rewrite_rules filter no 1
59 comments_template filter no 1
60 comment_atom_entry action no 1
61 comment_author filter no 1
62 comment_author_rss filter no 1
63 comment_closed action no 1
64 comment_edit_pre filter no 1
65 comment_edit_redirect filter no 1
66 comment_email filter no 1
67 comment_excerpt filter no 1
68 comment_feed_groupby filter no 1
69 comment_feed_join filter no 2
70 comment_feed_where filter no 2
71 comment_flood_filter filter no 1
72 comment_flood_trigger action no 1
73 comment_form action no 4
74 comment_id_not_found action no 1
75 comment_loop_start action no 1
76 comment_moderation_subject filter no 1
77 comment_moderation_text filter no 1
78 comment_notification_headers filter no 1
79 comment_notification_subject filter no 1
80 comment_notification_text filter no 1
81 comment_on_draft action no 1
82 comment_post action no 1
83 comment_post_redirect filter no 1
84 comment_save_pre filter no 1
85 comment_text filter no 1
86 comment_text_rss filter no 1
87 comment_url filter no 1
88 content_edit_pre filter no 1
89 content_save_pre filter no 2
90 created_term action YES 1
91 created_{$taxonomy} note action YES 1
92 create_term action YES 1
93 create_user_query filter no 1
94 create_{$taxonomy} note action YES 1
95 cron_schedules filter no 1
96 dashboard_incoming_links_feed filter YES 1
97 dashboard_incoming_links_link filter YES 1
98 dashboard_primary_feed filter YES 1
99 dashboard_primary_title filter YES 1
100 dashboard_secondary_feed filter YES 1
101 dashboard_secondary_link filter YES 1
102 dashboard_secondary_title filter YES 1
103 date_rewrite_rules filter no 1
104 day_link filter no 2
105 dbx_page_advanced action no 1
106 dbx_page_sidebar action no 1
107 dbx_post_advanced action no 1
108 dbx_post_sidebar action no 1
109 deactivate_{$plugin} note action no 2
110 default_content filter no 1
111 default_excerpt filter no 1
112 default_title filter no 1
113 deleted_link action no 1
114 deleted_post action no 1
115 delete_attachment action no 1
116 delete_comment action no 1
117 delete_link action no 1
118 delete_post action no 1
119 delete_user action no 1
120 delete_{$taxonomy} note action YES 1
121 do_robots action no 2
122 do_robotstxt action no 1
123 edited_term action YES 1
124 edited_{$taxonomy} note action YES 1
125 edit_attachment action no 1
126 edit_category_form action no 1
127 edit_category_form_pre action no 1
128 edit_comment action no 1
129 edit_comment_link filter YES 1
130 edit_form_advanced action no 1
131 edit_link action no 1
132 edit_link_category_form action YES 1
133 edit_link_category_form_pre action YES 1
134 edit_page_form action no 1
135 edit_post action no 3
136 edit_post_link filter YES 1
137 edit_post_{$field} note filter YES 1
138 edit_term action YES 1
139 edit_term_{$field} note filter YES 1
140 edit_user_profile action no 1
141 edit_{$field} note filter YES 2
142 edit_{$taxonomy} note action YES 1
143 edit_{$taxonomy}_{$field} note filter YES 1
144 explain_nonce_{$verb}-{$noun} note filter no 1
145 export_wp action YES 1
146 feed_link filter no 1
147 format_to_edit filter no 1
148 format_to_post filter no 1
149 found_posts filter no 1
150 found_posts_query filter no 1
151 generate_rewrite_rules action no 1
152 getarchives_join filter no 1
153 getarchives_where filter no 1
154 gettext filter no 1
155 get_attached_file filter no 1
156 get_bloginfo_rss filter no 2
157 get_bookmarks filter no 2
158 get_comment filter YES 1
159 get_comments_number filter no 1
160 get_comment_author filter no 1
161 get_comment_author_email filter no 1
162 get_comment_author_IP filter no 1
163 get_comment_author_link filter no 1
164 get_comment_author_url filter no 1
165 get_comment_author_url_link filter no 1
166 get_comment_date filter no 1
167 get_comment_excerpt filter no 1
168 get_comment_ID filter no 1
169 get_comment_text filter no 1
170 get_comment_time filter no 1
171 get_comment_type filter no 1
172 get_editable_authors filter no 1
173 get_edit_comment_link filter YES 1
174 get_edit_post_link filter YES 1
175 get_enclosed filter no 1
176 get_footer action no 1
177 get_header action no 1
178 get_lastpostdate filter YES 1
179 get_lastpostmodified filter YES 1
180 get_nested_categories filter YES 1
181 get_next_post_join filter no 1
182 get_next_post_sort filter no 1
183 get_next_post_where filter no 1
184 get_others_drafts filter no 1
185 get_pages filter no 2
186 get_previous_post_join filter no 1
187 get_previous_post_sort filter no 1
188 get_previous_post_where filter no 1
189 get_pung filter no 1
190 get_search_query filter YES 1
191 get_sidebar action no 1
192 get_tags filter YES 2
193 get_term filter YES 1
194 get_terms filter YES 2
195 get_the_excerpt filter no 1
196 get_the_guid filter no 1
197 get_the_modified_date filter no 1
198 get_the_modified_time filter no 2
199 get_the_tags filter YES 1
200 get_the_time filter no 2
201 get_to_ping filter no 1
202 get_users_drafts filter no 1
203 get_wp_title_rss filter no 1
204 get_{$taxonomy} note filter YES 1
205 home_template filter no 1
206 icon_dir filter no 2
207 icon_dir_uri filter no 1
208 import_done action no 2
209 import_upload_size_limit filter YES 1
210 init action no 1
211 js_escape filter no 1
212 kubrick_header_color filter no 1
213 kubrick_header_display filter no 1
214 kubrick_header_image filter no 1
215 link_category filter no 4
216 link_title filter no 1
217 list_cats filter no 4
218 list_terms_exclusions filter YES 1
219 load-{$pagenow} note action no 1
220 load-{$page_hook} note action no 1
221 load-{$plugin_page} note action no 1
222 load_feed_engine action YES 1
223 locale filter no 2
224 locale_stylesheet_uri filter no 1
225 loginout filter no 1
226 login_errors filter no 1
227 login_form action no 1
228 login_head action no 1
229 login_headertitle filter no 1
230 login_headerurl filter no 1
231 login_message filter no 1
232 loop_end action no 1
233 loop_start action no 1
234 lostpassword_form action no 1
235 lostpassword_post action no 1
236 lost_password action no 1
237 manage_link_columns filter no 1
238 manage_link_custom_column action no 1
239 manage_posts_columns filter no 1
240 manage_posts_custom_column action no 1
241 mce_browsers filter no 1
242 mce_buttons filter no 1
243 mce_buttons_2 filter no 1
244 mce_buttons_3 filter no 1
245 mce_css filter no 1
246 mce_options action no 1
247 mce_plugins filter no 1
248 mce_valid_elements filter no 1
249 mod_rewrite_rules filter no 1
250 month_link filter no 2
251 nag_posts_limit filter YES 1
252 ngettext filter no 1
253 option_{$setting} note filter no 1
254 page_link filter no 1
255 page_rewrite_rules filter no 1
256 page_template filter no 1
257 parse_query action no 1
258 parse_request action no 1
259 password_reset action no 1
260 personal_options_update action no 1
261 phone_content filter no 1
262 phpmailer_init action no 1
263 pingback_post action no 1
264 plugins_loaded action no 1
265 postmeta_form_limit filter no 1
266 posts_distinct filter no 1
267 posts_fields filter no 1
268 posts_groupby filter no 1
269 posts_join filter no 1
270 posts_join_paged filter no 1
271 posts_orderby filter no 1
272 posts_request filter no 1
273 posts_results filter YES 1
274 posts_selection action YES 1
275 posts_where filter no 1
276 posts_where_paged filter no 1
277 post_comments_feed_link filter no 1
278 post_limits filter no 1
279 post_link filter no 2
280 post_rewrite_rules filter no 1
281 post_{$field} note filter YES 1
282 prepend_attachment filter no 1
283 preprocess_comment filter no 1
284 preview_post_link filter no 2
285 pre_category_nicename filter no 1
286 pre_comment_approved filter no 1
287 pre_comment_author_email filter no 2
288 pre_comment_author_name filter no 2
289 pre_comment_author_url filter no 2
290 pre_comment_content filter no 1
291 pre_comment_user_agent filter no 1
292 pre_comment_user_ip filter no 1
293 pre_get_posts action no 1
294 pre_kses filter YES 1
295 pre_option_{$option->option_name} note filter no 1
296 pre_option_{$setting} note filter no 1
297 pre_ping action no 1
298 pre_post_{$field} note filter YES 1
299 pre_term_{$field} note filter YES 1
300 pre_upload_error filter no 1
301 pre_user_description filter no 1
302 pre_user_display_name filter no 1
303 pre_user_email filter no 1
304 pre_user_first_name filter no 1
305 pre_user_id filter no 1
306 pre_user_last_name filter no 1
307 pre_user_login filter no 2
308 pre_user_nicename filter no 1
309 pre_user_nickname filter no 1
310 pre_user_url filter no 1
311 pre_{$field} note filter YES 2
312 pre_{$taxonomy}_{$field} note filter YES 1
313 print_scripts_array filter YES 1
314 private_to_published action no 1
315 profile_personal_options action no 1
316 profile_update action no 1
317 publish_phone action no 1
318 pub_priv_sql_capability filter no 1
319 query filter no 1
320 query_string filter no 1
321 query_vars filter no 1
322 rdf_header action no 1
323 rdf_item action no 1
324 rdf_ns action no 1
325 redirect_canonical filter YES 1
326 register filter no 1
327 register_form action no 1
328 register_post action no 1
329 registration_errors filter no 1
330 request filter no 1
331 restrict_manage_posts action no 1
332 retreive_password action no 1
333 retrieve_password action no 1
334 rewrite_rules filter no 1
335 rewrite_rules_array filter no 1
336 richedit_pre filter no 2
337 role_has_cap filter no 1
338 root_rewrite_rules filter no 1
339 rss2_head action no 2
340 rss2_item action no 1
341 rss2_ns action no 1
342 rss_enclosure filter no 1
343 rss_head action no 1
344 rss_item action no 1
345 sanitize_comment_cookies action no 1
346 sanitize_option_{$option} note filter YES 1
347 sanitize_title filter no 1
348 sanitize_user filter no 1
349 save_post action no 2
350 script_loader_src filter no 1
351 search_rewrite_rules filter no 1
352 send_headers action no 1
353 set_current_user action no 1
354 show_password_fields filter no 3
355 show_user_profile action no 1
356 shutdown action no 1
357 sidebar_admin_page action no 1
358 sidebar_admin_setup action no 1
359 simple_edit_form action no 1
360 single_cat_title filter no 3
361 single_post_title filter no 2
362 single_tag_title filter YES 2
363 status_header filter no 1
364 stylesheet filter no 1
365 stylesheet_directory filter no 1
366 stylesheet_directory_uri filter no 1
367 stylesheet_uri filter no 1
368 switch_theme action no 3
369 tags_to_edit filter YES 1
370 tag_feed_link filter YES 1
371 tag_link filter YES 1
372 tag_rewrite_rules filter YES 1
373 tag_template filter YES 1
374 template filter no 1
375 template_directory filter no 1
376 template_directory_uri filter no 1
377 template_redirect action no 1
378 term_id_filter filter YES 2
379 term_{$field} note filter YES 1
380 term_{$field}_rss note filter YES 1
381 theme_mod_{$name} note filter no 2
382 theme_root filter no 1
383 theme_root_uri filter no 1
384 the_author filter no 1
385 the_author_email filter no 1
386 the_category filter no 5
387 the_category_rss filter no 1
388 the_content filter no 3
389 the_content_rss filter no 1
390 the_date filter no 1
391 the_editor filter no 1
392 the_editor_content filter no 1
393 the_excerpt filter no 2
394 the_excerpt_rss filter no 1
395 the_meta_key filter no 1
396 the_modified_date filter no 1
397 the_modified_time filter no 1
398 the_permalink filter no 1
399 the_permalink_rss filter YES 1
400 the_posts filter no 1
401 the_search_query filter YES 1
402 the_tags filter YES 1
403 the_time filter no 1
404 the_title filter no 11
405 the_title_rss filter no 3
406 the_weekday filter no 1
407 the_weekday_date filter no 1
408 thumbnail_filename filter no 1
409 tinymce_before_init action no 1
410 tiny_mce_config_url filter no 1
411 trackback_post action no 1
412 trackback_url filter no 1
413 transition_post_status action YES 1
414 update_attached_file filter no 1
415 update_footer filter YES 1
416 update_option_{$option_name} note action no 1
417 update_user_query filter no 1
418 uploading_iframe_src filter no 2
419 upload_dir filter no 1
420 upload_files_{$tab} note action no 1
421 upload_mimes filter no 1
422 url_to_postid filter no 1
423 user_can_richedit filter no 1
424 user_has_cap filter no 1
425 user_register action no 1
426 user_registration_email filter no 1
427 user_trailingslashit filter no 1
428 validate_username filter no 1
429 widgets_init action no 1
430 widget_text filter YES 1
431 wp action no 1
432 wp_admin_css filter YES 2
433 wp_admin_css_uri filter YES 1
434 wp_ajax_{$action} note action no 1
435 wp_authenticate action no 1
436 wp_blacklist_check action no 1
437 wp_create_file_in_uploads filter no 4
438 wp_create_thumbnail filter no 1
439 wp_delete_file filter no 4
440 wp_dropdown_cats filter no 1
441 wp_dropdown_pages filter no 1
442 wp_dropdown_users filter YES 1
443 wp_footer action no 1
444 wp_generate_attachment_metadata filter no 1
445 wp_generate_tag_cloud filter YES 1
446 wp_get_attachment_metadata filter no 1
447 wp_get_attachment_thumb_file filter no 1
448 wp_get_attachment_thumb_url filter no 1
449 wp_get_attachment_url filter no 1
450 wp_handle_upload filter no 2
451 wp_head action no 1
452 wp_insert_post action no 2
453 wp_list_categories filter no 1
454 wp_list_pages filter no 1
455 wp_list_pages_excludes filter no 1
456 wp_login action no 1
457 wp_logout action no 1
458 wp_mail filter no 1
459 wp_mail_charset filter YES 1
460 wp_mail_content_type filter YES 1
461 wp_mail_from filter no 1
462 wp_mail_from_name filter YES 1
463 wp_meta action no 1
464 wp_mime_type_icon filter no 1
465 wp_parse_str filter YES 1
466 wp_print_scripts action no 1
467 wp_redirect filter no 1
468 wp_set_comment_status action no 2
469 wp_tag_cloud filter YES 1
470 wp_thumbnail_creation_size_limit filter no 1
471 wp_thumbnail_max_side_length filter no 1
472 wp_title filter no 1
473 wp_title_rss filter no 1
474 wp_update_attachment_metadata filter no 1
475 wp_update_comment_count action YES 1
476 wp_upload_tabs filter no 1
477 xmlrpc_methods filter no 1
478 xmlrpc_publish_post action no 1
479 xmlrpc_text_filters filter no 1
480 year_link filter no 2
481 _admin_menu action no 1
482 _get_page_link filter no 1
483 {$field_no_prefix}_edit_pre note filter YES 1
484 {$field_no_prefix}_save_pre note filter YES 1
485 {$field} note filter YES 2
486 {$field}_pre note filter YES 1
487 {$hook} note action no 2
488 {$new_status}_{$post->post_type} note action YES 1
489 {$old_status}_to_{$new_status} note action YES 1
490 {$page_hook} note action no 1
491 {$tag} note action no 2
492 {$tag} note filter no 1
493 {$taxonomy}_{$field_rss} note filter YES 1
494 {$taxonomy}_{$field} note filter YES 1
495 {$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.