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