Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

List of all deprecated WordPress hooks

WordPress coders, theme authors, and plugin developers use the hooks listed below to change how WordPress behaves without needing to edit any PHP source files. Use this index to identify the WordPress hooks that you need.

Hook Type Appearance In 5.1?
1 active_plugins filter 2.9 DEPRECATED
2 added_postmeta action 2.9 DEPRECATED
3 add_category action 1.5.2 DEPRECATED
4 add_option_{$name} note action 2.5 DEPRECATED
5 add_site_option_{$key} note action 2.9 DEPRECATED
6 admin_footer-press-this-php action 4.2 DEPRECATED
7 admin_head-press-this-php action 3.7 DEPRECATED
8 admin_head-{$page_hook} note action 2.1 DEPRECATED
9 admin_head-{$plugin_page} note action 2.1 DEPRECATED
10 admin_head{$hook_suffix} note action 2.6 DEPRECATED
11 admin_print_footer_scripts-press-this-php action 4.6 DEPRECATED
12 admin_print_scripts-press-this-php action 3.7 DEPRECATED
13 admin_print_scripts-{$page_hook} note action 2.1 DEPRECATED
14 admin_print_scripts-{$plugin_page} note action 2.1 DEPRECATED
15 admin_print_scripts{$hook_suffix} note action 2.6 DEPRECATED
16 admin_print_styles-press-this-php action 3.7 DEPRECATED
17 admin_print_styles{$hook_suffix} note action 2.6 DEPRECATED
18 admin_user_info_links filter 3.0 DEPRECATED
19 after_theme_row_{$theme_key} note action 3.1 DEPRECATED
20 akismet_tabs action 2.5 DEPRECATED
21 all_options filter 1.5.2 DEPRECATED
22 app_entry action 3.0 DEPRECATED
23 app_head action 3.0 DEPRECATED
24 app_ns action 3.0 DEPRECATED
25 app_publish_post action 2.2 DEPRECATED
26 atompub_create_post action 2.8 DEPRECATED
27 atompub_put_post action 2.8 DEPRECATED
28 atom_service_url filter 2.5 DEPRECATED
29 audio_send_to_editor_url filter 2.8 DEPRECATED
30 audio_upload_iframe_src filter 2.5 DEPRECATED
31 author_template filter 3.0 DEPRECATED
32 auth_post_meta_{$meta_key} note filter 3.3 DEPRECATED
33 auth_post_{$post_type}_meta_{$meta_key} note filter 4.6 DEPRECATED
34 auth_{$object_type}_{$sub_type}_meta_{$meta_key} note filter 4.7 DEPRECATED
35 autosave_generate_nonces action 2.9 DEPRECATED
36 autosave_interval filter 2.1 DEPRECATED
37 blog_details filter 3.0 DEPRECATED
38 blog_option_{$setting} note filter 3.0 DEPRECATED
39 bulk_actions-{$screen->id} note filter 3.1 DEPRECATED
40 category_archive_meta filter 3.2 DEPRECATED
41 category_rewrite_rules filter 1.5.2 DEPRECATED
42 category_save_pre filter 1.5.2 Renamed in WP 2.3 (details)
43 category_template filter 1.5.2 DEPRECATED
44 cat_id_filter filter 2.1 DEPRECATED
45 cat_row filter 2.3 DEPRECATED
46 cat_rows filter 2.1 DEPRECATED
47 cat_row_actions filter 2.8 DEPRECATED
48 codepress_supported_langs filter 2.8 DEPRECATED
49 comments_popup_template filter 1.5.2 DEPRECATED
50 comment_content_presave filter 1.5.2 DEPRECATED
51 comment_relatedlinks_list action 2.5 DEPRECATED
52 comment_status_pre filter 2.0 Renamed in WP 2.3 (details)
53 content_edit_pre filter 1.5.2 DEPRECATED
54 content_filtered_save_pre filter 2.0.11 Renamed in WP 2.3 (details)
55 core_files_loaded action 1.5.2 DEPRECATED
56 created_category action 2.2 Renamed in WP 2.3 (details)
57 create_category action 2.0 Renamed in WP 2.3 (details)
58 create_user_query filter 2.0 DEPRECATED
59 customize_save_{$this->id_data[base]} note action 3.4 DEPRECATED
60 customize_value_{$this->id_data[base]} note filter 3.4 DEPRECATED
61 dashboard_count_sentence filter 2.5 DEPRECATED
62 dashboard_incoming_links_feed filter 2.3 DEPRECATED
63 dashboard_incoming_links_link filter 2.3 DEPRECATED
64 dashmenu action 2.5 DEPRECATED
65 dbx_page_advanced action 2.0.11 DEPRECATED
66 dbx_page_sidebar action 2.0.11 DEPRECATED
67 deleted_blog action 4.8 DEPRECATED
68 deleted_commentmeta action 2.9 DEPRECATED
69 delete_blog action 3.0 DEPRECATED
70 delete_category action 1.5.2 Renamed in WP 2.3 (details)
71 delete_commentmeta action 2.9 DEPRECATED
72 delete_site_option_{$key} note action 2.9 DEPRECATED
73 edited_category action 2.2 Renamed in WP 2.3 (details)
74 edit_category action 2.0 Renamed in WP 2.3 (details)
75 edit_pages_per_page filter 2.9 DEPRECATED
76 edit_{$taxonomy}_per_page note filter 3.0 DEPRECATED
77 embed_googlevideo filter 2.9 DEPRECATED
78 embed_polldaddy filter 2.9 DEPRECATED
79 embed_template filter 4.4 DEPRECATED
80 enable_press_this_media_discovery filter 4.2 DEPRECATED
81 excerpt_edit_pre filter 1.5.2 Renamed in WP 2.3 (details)
82 explain_nonce_{$action} note filter 2.8 DEPRECATED
83 explain_nonce_{$verb}-{$noun} note filter 2.1 DEPRECATED
84 favorite_actions filter 2.7 DEPRECATED
85 file_send_to_editor_url filter 2.8 DEPRECATED
86 flash_uploader filter 2.5 DEPRECATED
87 format_to_post filter 1.2.1 DEPRECATED
88 front_page_template filter 3.0 DEPRECATED
89 get_categories filter 2.1 DEPRECATED
90 get_category filter 2.0.11 Renamed in WP 2.3 (details)
91 get_nested_categories filter 2.3 DEPRECATED
92 get_next_post_join filter 2.1 Renamed in WP 2.5 (details)
93 get_next_post_sort filter 2.1 Renamed in WP 2.5 (details)
94 get_next_post_where filter 2.1 Renamed in WP 2.5 (details)
95 get_previous_post_join filter 2.1 Renamed in WP 2.5 (details)
96 get_previous_post_sort filter 2.1 Renamed in WP 2.5 (details)
97 get_previous_post_where filter 2.1 Renamed in WP 2.5 (details)
98 hierarchical_post_types filter 2.8 DEPRECATED
99 home_template filter 1.5.2 DEPRECATED
100 http_request_default_port filter 2.7 DEPRECATED
101 http_request_port filter 2.7 DEPRECATED
102 http_transport_get_debug action 2.8 DEPRECATED
103 http_transport_post_debug action 2.8 DEPRECATED
104 image_upload_iframe_src filter 2.5 DEPRECATED
105 import_allow_create_users filter 2.5 DEPRECATED
106 import_allow_fetch_attachments filter 2.5 DEPRECATED
107 import_attachment_size_limit filter 2.5 DEPRECATED
108 import_done action 2.2 DEPRECATED
109 import_end action 2.5 DEPRECATED
110 import_post_added action 2.5 DEPRECATED
111 import_post_meta action 2.5 DEPRECATED
112 import_post_meta_key filter 2.5 DEPRECATED
113 import_start action 2.5 DEPRECATED
114 install_feedback filter 2.7 DEPRECATED
115 kubrick_header_color filter 2.0 DEPRECATED
116 kubrick_header_display filter 2.0 DEPRECATED
117 kubrick_header_image filter 2.0 DEPRECATED
118 link_cat_row filter 2.5 DEPRECATED
119 link_cat_row_actions filter 2.8 DEPRECATED
120 link_description filter 2.2 Renamed in WP 2.3 (details)
121 link_rating filter 1.5.2 Renamed in WP 2.3 (details)
122 link_relatedlinks_list action 2.5 DEPRECATED
123 list_cats_exclusions filter 1.5.2 DEPRECATED
124 manage_blogs_custom_column action 3.0 DEPRECATED
125 manage_categories_custom_column filter 2.8 DEPRECATED
126 manage_link_categories_custom_column filter 2.8 DEPRECATED
127 manage_link_columns filter 2.1 DEPRECATED
128 manage_media_media_column action 2.5 DEPRECATED
129 manage_pages_query filter 2.5 DEPRECATED
130 manage_{$page}_columns note filter 2.7 DEPRECATED
131 manage_{$screen->id}_sortable_columns note filter 3.1 DEPRECATED
132 manage_{$screen->taxonomy}_custom_column note filter 3.1 DEPRECATED
133 manage_{$taxonomy}_custom_column note filter 2.8 DEPRECATED
134 mce_browsers filter 2.0 DEPRECATED
135 mce_options action 2.0 DEPRECATED
136 mce_plugins filter 2.0 DEPRECATED
137 mce_spellchecker_languages filter 2.5 DEPRECATED
138 mce_theme filter 2.0 DEPRECATED
139 mce_valid_elements filter 2.0 DEPRECATED
140 ms_sites_per_page filter 3.0 DEPRECATED
141 ms_users_per_page filter 3.0 DEPRECATED
142 nag_posts_limit filter 2.3 DEPRECATED
143 name_save_pre filter 1.5.2 Renamed in WP 2.3 (details)
144 network_sites_updated_message_{$updated} note filter 3.5 DEPRECATED
145 option_{$setting} note filter 1.5.2 DEPRECATED
146 page_relatedlinks_list action 2.5 DEPRECATED
147 page_stati filter 2.8 DEPRECATED
148 page_template filter 1.5.2 DEPRECATED
149 password_reset_message filter 2.8 DEPRECATED
150 password_reset_title filter 2.8 DEPRECATED
151 ping_status_pre filter 2.0 Renamed in WP 2.3 (details)
152 plugins_per_page filter 2.8 DEPRECATED
153 post-flash-upload-ui action 2.6 DEPRECATED
154 post_comment_text filter 1.2.1 DEPRECATED
155 post_mime_type_pre filter 2.0 Renamed in WP 2.3 (details)
156 post_relatedlinks_list action 2.5 DEPRECATED
157 post_stati filter 2.5 DEPRECATED
158 pre-flash-upload-ui action 2.6 DEPRECATED
159 press_this_data filter 4.2 DEPRECATED
160 press_this_redirect_in_parent filter 4.2 DEPRECATED
161 press_this_save_post filter 4.5 DEPRECATED
162 press_this_save_redirect filter 4.2 DEPRECATED
163 press_this_suggested_html filter 4.2 DEPRECATED
164 preview_page_link filter 2.1 DEPRECATED
165 pre_add_site_option_{$key} note filter 2.9 DEPRECATED
166 pre_category_description filter 2.0.11 Renamed in WP 2.3 (details)
167 pre_category_name filter 2.0.11 Renamed in WP 2.3 (details)
168 pre_comment_user_domain filter 1.5.2 DEPRECATED
169 pre_link_description filter 2.0.11 Renamed in WP 2.3 (details)
170 pre_link_image filter 2.0.11 Renamed in WP 2.3 (details)
171 pre_link_name filter 2.0.11 Renamed in WP 2.3 (details)
172 pre_link_notes filter 2.0.11 Renamed in WP 2.3 (details)
173 pre_link_rel filter 2.0.11 Renamed in WP 2.3 (details)
174 pre_link_rss filter 2.0.11 Renamed in WP 2.3 (details)
175 pre_link_target filter 2.0.11 Renamed in WP 2.3 (details)
176 pre_link_url filter 2.0.11 Renamed in WP 2.3 (details)
177 pre_option_{$option->option_name} note filter 1.5.2 DEPRECATED
178 pre_option_{$setting} note filter 2.2 DEPRECATED
179 pre_site_option_{$key} note filter 2.9 DEPRECATED
180 pre_update_option_{$option_name} note filter 2.6 DEPRECATED
181 pre_update_site_option_{$key} note filter 2.9 DEPRECATED
182 publish_page action 2.1 Renamed in WP 2.3 (details)
183 publish_post action 1.2.1 Renamed in WP 2.3 (details)
184 redirect_page_location filter 2.9 DEPRECATED
185 refresh_blog_details action 3.4 DEPRECATED
186 rest_enabled filter 4.4 DEPRECATED
187 right_now_content_table_end action 3.0 DEPRECATED
188 right_now_discussion_table_end action 3.0 DEPRECATED
189 right_now_table_end action 2.7 DEPRECATED
190 sanitize_meta filter 3.2 DEPRECATED
191 sanitize_{$meta_type}_meta_{$meta_key} note filter 3.3 DEPRECATED
192 screen_meta_screen filter 2.7 DEPRECATED
193 show_adduser_fields filter 3.0 DEPRECATED
194 sidemenu action 2.5 DEPRECATED
195 simple_edit_form action 1.5.2 DEPRECATED
196 single_template filter 3.0 DEPRECATED
197 site_option_{$key} note filter 2.9 DEPRECATED
198 status_save_pre filter 1.5.2 Renamed in WP 2.3 (details)
199 submitcomment_box action 2.5 DEPRECATED
200 swfupload_post_params filter 3.1 DEPRECATED
201 swfupload_success_handler filter 3.1 DEPRECATED
202 tags_to_edit filter 2.3 DEPRECATED
203 tag_archive_meta filter 3.2 DEPRECATED
204 tag_rows filter 2.5 DEPRECATED
205 tag_template filter 2.3 DEPRECATED
206 taxonomy_template filter 2.5 DEPRECATED
207 theme_action_links_{$theme_key} note filter 3.1 DEPRECATED
208 theme_install_action_links filter 2.8 DEPRECATED
209 theme_page_templates filter 3.9 DEPRECATED
210 the_author_email filter 1.5.2 DEPRECATED
211 thumbnail_filename filter 2.0 DEPRECATED
212 timezone_support filter 2.8 DEPRECATED
213 tinymce_before_init action 2.0 DEPRECATED
214 tiny_mce_config_url filter 2.1 DEPRECATED
215 tiny_mce_preload_dialogs action 3.1 DEPRECATED
216 tiny_mce_version filter 2.5 DEPRECATED
217 title_edit_pre filter 1.5.2 Renamed in WP 2.3 (details)
218 trash_post action 2.9 DEPRECATED
219 twentyeleven_attachment_size filter 3.2 DEPRECATED
220 twentyeleven_author_bio_avatar_size filter 3.2 DEPRECATED
221 twentyeleven_color_schemes filter 3.2 DEPRECATED
222 twentyeleven_credits action 3.2 DEPRECATED
223 twentyeleven_default_theme_options filter 3.2 DEPRECATED
224 twentyeleven_enqueue_color_scheme action 3.2 DEPRECATED
225 twentyeleven_header_image_height filter 3.2 DEPRECATED
226 twentyeleven_header_image_width filter 3.2 DEPRECATED
227 twentyeleven_layouts filter 3.2 DEPRECATED
228 twentyeleven_layout_classes filter 3.2 DEPRECATED
229 twentyeleven_status_avatar filter 3.2 DEPRECATED
230 twentyeleven_theme_options_validate filter 3.2 DEPRECATED
231 twentyfifteen_attachment_size filter 4.1 DEPRECATED
232 twentyfifteen_author_bio_avatar_size filter 4.1 DEPRECATED
233 twentyfifteen_color_schemes filter 4.1 DEPRECATED
234 twentyfifteen_credits action 4.1 DEPRECATED
235 twentyfifteen_custom_background_args filter 4.1 DEPRECATED
236 twentyfifteen_custom_header_args filter 4.1 DEPRECATED
237 twentyfourteen_attachment_size filter 3.8 DEPRECATED
238 twentyfourteen_credits action 3.8 DEPRECATED
239 twentyfourteen_custom_background_args filter 3.8 DEPRECATED
240 twentyfourteen_custom_header_args filter 3.8 DEPRECATED
241 twentyfourteen_featured_posts_after action 3.8 DEPRECATED
242 twentyfourteen_featured_posts_before action 3.8 DEPRECATED
243 twentyfourteen_get_featured_posts filter 3.8 DEPRECATED
244 twentyten_attachment_height filter 3.1 DEPRECATED
245 twentyten_attachment_size filter 3.0 DEPRECATED
246 twentyten_author_bio_avatar_size filter 3.0 DEPRECATED
247 twentyten_credits action 3.0 DEPRECATED
248 twentyten_header_image_height filter 3.0 DEPRECATED
249 twentyten_header_image_width filter 3.0 DEPRECATED
250 twentythirteen_attachment_size filter 3.6 DEPRECATED
251 twentythirteen_author_bio_avatar_size filter 3.6 DEPRECATED
252 twentythirteen_credits action 3.6 DEPRECATED
253 twentytwelve_attachment_size filter 3.5 DEPRECATED
254 twentytwelve_author_bio_avatar_size filter 3.5 DEPRECATED
255 twentytwelve_credits action 3.5 DEPRECATED
256 twentytwelve_status_avatar filter 3.5 DEPRECATED
257 update_option_{$option_name} note action 2.0.11 DEPRECATED
258 update_site_option_{$key} note action 2.9 DEPRECATED
259 update_user_query filter 2.0 DEPRECATED
260 uploading_iframe_src filter 2.0 DEPRECATED
261 upload_files_{$tab} note action 2.1 DEPRECATED
262 upload_file_glob filter 2.6 DEPRECATED
263 user_aim_label filter 2.8 DEPRECATED
264 user_jabber_label filter 2.8 DEPRECATED
265 user_yim_label filter 2.8 DEPRECATED
266 use_fopen_transport filter 2.7 DEPRECATED
267 use_fsockopen_transport filter 2.7 DEPRECATED
268 use_http_extension_transport filter 2.7 DEPRECATED
269 video_send_to_editor_url filter 2.8 DEPRECATED
270 video_upload_iframe_src filter 2.5 DEPRECATED
271 views_{$screen->id} note filter 3.1 DEPRECATED
272 visual_editor filter 2.5 DEPRECATED
273 wpmu_new_blog action 3.0 DEPRECATED
274 wp_atom_server_class filter 3.4 DEPRECATED
275 wp_audio_shortcode_handler filter 3.6 DEPRECATED
276 wp_dashboard_widget_links_{$widget_id} note filter 2.5 DEPRECATED
277 wp_die_app_handler filter 3.4 DEPRECATED
278 wp_fullscreen_buttons filter 3.2 DEPRECATED
279 wp_handle_upload_prefilter filter 2.9 DEPRECATED
280 wp_thumbnail_creation_size_limit filter 2.1 DEPRECATED
281 wp_thumbnail_max_side_length filter 2.1 DEPRECATED
282 wp_upload_resize filter 3.3 DEPRECATED
283 wp_upload_tabs filter 2.1 DEPRECATED
284 wp_video_shortcode_handler filter 3.6 DEPRECATED
285 {$action} note action 2.6 DEPRECATED
286 {$callback} note filter 2.8 DEPRECATED
287 {$per_page} note filter 3.0 DEPRECATED
288 {$prefix}plugin_action_links note filter 3.1 DEPRECATED
289 {$prefix}plugin_action_links_{$plugin_file} note filter 3.1 DEPRECATED
290 {$taxonomy}_{$field_rss} note filter 2.3 Renamed in WP 2.5 (details)

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.