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