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