Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

New plugin hooks in WordPress 2.1

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 add_category_form_pre action YES 1
2 admin_head-{$page_hook} note action YES 1
3 admin_head-{$plugin_page} note action YES 1
4 admin_print_scripts action YES 1
5 admin_print_scripts-{$page_hook} note action YES 1
6 admin_print_scripts-{$plugin_page} note action YES 1
7 autosave_interval filter YES 1
8 bloginfo_rss filter YES 1
9 blog_privacy_selector action YES 1
10 cat_id_filter filter YES 1
11 cat_rows filter YES 1
12 check_ajax_referer action YES 1
13 commentrss2_item action YES 1
14 comments_array filter YES 1
15 comment_flood_filter filter YES 1
16 cron_schedules filter YES 1
17 do_robots action YES 1
18 do_robotstxt action YES 1
19 edit_category_form action YES 1
20 edit_category_form_pre action YES 1
21 explain_nonce_{$verb}-{$noun} note filter YES 1
22 found_posts filter YES 1
23 found_posts_query filter YES 1
24 get_attached_file filter YES 1
25 get_bookmarks filter YES 1
26 get_categories filter YES 1
27 get_footer action YES 1
28 get_header action YES 1
29 get_next_post_join filter YES 1
30 get_next_post_sort filter YES 1
31 get_next_post_where filter YES 1
32 get_pages filter YES 1
33 get_previous_post_join filter YES 1
34 get_previous_post_sort filter YES 1
35 get_previous_post_where filter YES 1
36 get_the_modified_date filter YES 1
37 load-{$pagenow} note action YES 1
38 load-{$page_hook} note action YES 1
39 load-{$plugin_page} note action YES 1
40 locale_stylesheet_uri filter YES 1
41 login_errors filter YES 1
42 login_form action YES 1
43 login_head action YES 1
44 login_headertitle filter YES 1
45 login_headerurl filter YES 1
46 login_message filter YES 1
47 lostpassword_form action YES 1
48 lostpassword_post action YES 1
49 manage_link_columns filter YES 1
50 manage_link_custom_column action YES 1
51 mce_css filter YES 1
52 parse_request action YES 1
53 postmeta_form_limit filter YES 1
54 posts_distinct filter YES 1
55 posts_fields filter YES 1
56 post_limits filter YES 1
57 preview_page_link filter YES 1
58 pre_upload_error filter YES 1
59 publish_page action YES 1
60 register_form action YES 1
61 register_post action YES 1
62 registration_errors filter YES 1
63 request filter YES 1
64 restrict_manage_posts action YES 1
65 send_headers action YES 1
66 the_editor filter YES 1
67 the_editor_content filter YES 1
68 the_modified_date filter YES 1
69 tiny_mce_config_url filter YES 1
70 update_attached_file filter YES 1
71 upload_files_{$tab} note action YES 1
72 user_can_richedit filter YES 1
73 user_registration_email filter YES 1
74 wp action YES 1
75 wp_ajax_{$action} note action YES 1
76 wp_create_file_in_uploads filter YES 1
77 wp_create_thumbnail filter YES 1
78 wp_delete_file filter YES 1
79 wp_dropdown_cats filter YES 1
80 wp_dropdown_pages filter YES 1
81 wp_generate_attachment_metadata filter YES 1
82 wp_get_attachment_metadata filter YES 1
83 wp_get_attachment_thumb_file filter YES 1
84 wp_get_attachment_thumb_url filter YES 1
85 wp_get_attachment_url filter YES 1
86 wp_handle_upload filter YES 1
87 wp_list_categories filter YES 1
88 wp_list_pages_excludes filter YES 1
89 wp_mime_type_icon filter YES 1
90 wp_print_scripts action YES 1
91 wp_redirect filter YES 1
92 wp_thumbnail_creation_size_limit filter YES 1
93 wp_thumbnail_max_side_length filter YES 1
94 wp_update_attachment_metadata filter YES 1
95 wp_upload_tabs filter YES 1
96 xmlrpc_publish_post action YES 1
97 _get_page_link filter YES 1
98 {$hook} note action 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.