Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

New plugin hooks in WordPress 2.9

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 comment_on_trash action YES 1
2 wp-mail-php action YES 1
3 autosave_generate_nonces action YES 1
4 edit_category_form_fields action YES 1
5 edit_link_category_form_fields action YES 1
6 edit_tag_form_fields action YES 1
7 core_upgrade_preamble action YES 1
8 admin_print_styles-media-upload-popup action YES 1
9 admin_print_scripts-media-upload-popup action YES 1
10 admin_head-media-upload-popup action YES 1
11 post_submitbox_misc_actions action YES 1
12 activate_plugin action YES 1
13 activated_plugin action YES 1
14 deactivate_plugin action YES 1
15 deactivated_plugin action YES 1
16 added_postmeta action YES 1
17 delete_postmeta action YES 1
18 deleted_postmeta action YES 1
19 update_postmeta action YES 1
20 updated_postmeta action YES 1
21 set_user_role action YES 1
22 delete_commentmeta action YES 1
23 deleted_commentmeta action YES 1
24 deleted_comment action YES 1
25 trash_comment action YES 1
26 trashed_comment action YES 1
27 untrash_comment action YES 1
28 untrashed_comment action YES 1
29 spam_comment action YES 1
30 spammed_comment action YES 1
31 unspam_comment action YES 1
32 unspammed_comment action YES 1
33 update_option action YES 1
34 updated_option action YES 1
35 add_option action YES 1
36 added_option action YES 1
37 delete_option action YES 1
38 deleted_option action YES 1
39 add_site_option_{$key} note action YES 1
40 delete_site_option_{$key} note action YES 1
41 update_site_option_{$key} note action YES 1
42 load_textdomain action YES 1
43 added_{$meta_type}_meta note action YES 1
44 update_{$meta_type}_meta note action YES 1
45 updated_{$meta_type}_meta note action YES 1
46 deleted_{$meta_type}_meta note action YES 1
47 begin_fetch_post_thumbnail_html action YES 1
48 end_fetch_post_thumbnail_html action YES 1
49 trash_post action YES 1
50 trashed_post action YES 1
51 untrash_post action YES 1
52 untrashed_post action YES 1
53 trash_post_comments action YES 1
54 trashed_post_comments action YES 1
55 untrash_post_comments action YES 1
56 untrashed_post_comments action YES 1
57 delete_term_relationships action YES 1
58 deleted_term_relationships action YES 1
59 edit_term_taxonomies action YES 1
60 edited_term_taxonomies action YES 1
61 delete_term_taxonomy action YES 1
62 deleted_term_taxonomy action YES 1
63 edit_terms action YES 1
64 edited_terms action YES 1
65 add_term_relationship action YES 1
66 added_term_relationship action YES 1
67 edit_term_taxonomy action YES 1
68 edited_term_taxonomy action YES 1
69 delete_usermeta action YES 1
70 deleted_usermeta action YES 1
71 update_usermeta action YES 1
72 added_usermeta action YES 1
73 updated_usermeta action YES 1
74 active_plugins filter YES 1
75 edit_pages_per_page filter YES 1
76 redirect_page_location filter YES 1
77 redirect_post_location filter YES 1
78 upload_per_page filter YES 1
79 user_{$name}_label note filter YES 1
80 wp_handle_upload_prefilter filter YES 1
81 fs_ftp_connection_types filter YES 1
82 load_image_to_edit_path filter YES 1
83 load_image_to_edit filter YES 1
84 image_save_pre filter YES 1
85 wp_save_image_file filter YES 1
86 image_edit_before_change filter YES 1
87 intermediate_image_sizes_advanced filter YES 1
88 get_sample_permalink_html filter YES 1
89 admin_post_thumbnail_html filter YES 1
90 {$option} note filter YES 1
91 akismet_spam_count_incr filter YES 1
92 the_author_posts_link filter YES 1
93 the_terms filter YES 1
94 oembed_providers filter YES 1
95 oembed_result filter YES 1
96 oembed_linktypes filter YES 1
97 oembed_dataparse filter YES 1
98 pingback_useragent filter YES 1
99 embed_googlevideo filter YES 1
100 embed_polldaddy filter YES 1
101 the_content_feed filter YES 1
102 smilies_src filter YES 1
103 excerpt_more filter YES 1
104 sanitize_text_field filter YES 1
105 load_default_embeds filter YES 1
106 pre_site_option_{$key} note filter YES 1
107 site_option_{$key} note filter YES 1
108 pre_add_site_option_{$key} note filter YES 1
109 pre_update_site_option_{$key} note filter YES 1
110 pre_site_transient_{$transient} note filter YES 1
111 site_transient_{$transient} note filter YES 1
112 extra_{$context}_headers note filter YES 1
113 pre_http_request filter YES 1
114 http_response filter YES 1
115 safe_style_css filter YES 1
116 override_load_textdomain filter YES 1
117 load_textdomain_mofile filter YES 1
118 get_delete_post_link filter YES 1
119 embed_handler_html filter YES 1
120 embed_oembed_html filter YES 1
121 embed_oembed_discover filter YES 1
122 embed_cache_oembed_types filter YES 1
123 embed_maybe_make_link filter YES 1
124 embed_defaults filter YES 1
125 auth_redirect_scheme filter YES 1
126 post_thumbnail_size filter YES 1
127 post_thumbnail_html filter YES 1
128 _wp_relative_upload_path filter YES 1
129 user_contactmethods filter YES 1
130 edit_user_{$field} note filter YES 1
131 pre_user_{$field} note filter YES 1
132 user_{$field} note 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.