Welcome, visitor! Log in
 

All hooks in WP 2.1

Important! Some hooks get applied in multiple files. If you are trying to figure out what a specific hook does, sort the table by "hook" and make sure you are looking in all the files where it occurs.

  • To sort the table, click on a column title.
  • Click a hook name to see details about the hook.
  • Click a file name to see only hooks used in that file.
Hook Type New? File
1 activate_{$plugin} note action YES /.../plugins.php
2 activity_box_end action no /.../index.php
3 add_attachment action no /.../post.php
4 add_category action no /.../admin-db.php
5 add_category_form_pre action YES /.../edit-category-form.php
6 add_link action no /.../admin-db.php
7 add_ping filter no /.../post.php
8 admin_footer action no /.../admin-footer.php
9 admin_footer action no /.../bookmarklet.php
10 admin_head action no /.../admin-header.php
11 admin_head-{$page_hook} note action YES /.../admin-header.php
12 admin_head-{$plugin_page} note action YES /.../admin-header.php
13 admin_menu action no /.../menu.php
14 admin_notices action no /.../menu-header.php
15 admin_print_scripts action YES /.../admin-header.php
16 admin_print_scripts action no /.../upload.php
17 admin_print_scripts-{$page_hook} note action YES /.../admin-header.php
18 admin_print_scripts-{$plugin_page} note action YES /.../admin-header.php
19 all_options filter no /.../functions.php
20 atom_entry action no wp-atom.php
21 atom_head action no wp-atom.php
22 atom_ns action no wp-atom.php
23 attachment_icon filter no /.../post-template.php
24 attachment_innerHTML filter no /.../post-template.php
25 attachment_link filter no /.../link-template.php
26 attachment_max_dims filter no /.../post-template.php
27 attribute_escape filter no /.../formatting.php
28 author_email filter no /.../comment-template.php
29 author_feed_link filter no /.../feed.php
30 author_link filter no /.../author-template.php
31 author_rewrite_rules filter no /.../rewrite.php
32 autosave_interval filter no /.../autosave-js.php
33 autosave_interval filter YES /.../admin-functions.php
34 bloginfo filter no /.../general-template.php
35 bloginfo_rss filter YES /.../feed.php
36 bloginfo_url filter no /.../general-template.php
37 blog_privacy_selector action YES /.../options-privacy.php
38 category_description filter no /.../category-template.php
39 category_description filter no /.../classes.php
40 category_feed_link filter no /.../feed.php
41 category_link filter no /.../category-template.php
42 category_rewrite_rules filter no /.../rewrite.php
43 category_save_pre filter no /.../post.php
44 category_template filter no /.../theme.php
45 cat_id_filter filter YES /.../admin-db.php
46 cat_rows filter YES /.../admin-functions.php
47 check_admin_referer action no /.../pluggable.php
48 check_ajax_referer action YES /.../pluggable.php
49 check_passwords action no /.../admin-functions.php
50 commentrss2_item action YES wp-commentsrss2.php
51 comments_array filter YES /.../comment-template.php
52 comments_number filter no /.../comment-template.php
53 comments_popup_template filter no /.../theme.php
54 comments_rewrite_rules filter no /.../rewrite.php
55 comments_template filter no /.../comment-template.php
56 comment_author filter no /.../comment-template.php
57 comment_author_rss filter no /.../feed.php
58 comment_closed action no wp-comments-post.php
59 comment_edit_pre filter no /.../admin-functions.php
60 comment_edit_redirect filter no /.../comment.php
61 comment_email filter no /.../comment-template.php
62 comment_excerpt filter no /.../comment-template.php
63 comment_flood_filter filter YES /.../comment.php
64 comment_flood_trigger action no /.../comment.php
65 comment_form action no /.../comments-popup.php
66 comment_form action no /.../comments.php
67 comment_form action no /.../comments-popup.php
68 comment_form action no /.../comments.php
69 comment_id_not_found action no wp-comments-post.php
70 comment_moderation_subject filter no /.../pluggable.php
71 comment_moderation_text filter no /.../pluggable.php
72 comment_notification_headers filter no /.../pluggable.php
73 comment_notification_subject filter no /.../pluggable.php
74 comment_notification_text filter no /.../pluggable.php
75 comment_on_draft action no wp-comments-post.php
76 comment_post action no /.../comment.php
77 comment_post_redirect filter no wp-comments-post.php
78 comment_save_pre filter no /.../comment.php
79 comment_status_pre filter no /.../post.php
80 comment_text filter no /.../comment.php
81 comment_text filter no /.../comment-template.php
82 comment_text_rss filter no /.../feed.php
83 comment_url filter no /.../comment-template.php
84 content_edit_pre filter no /.../admin-functions.php
85 content_edit_pre filter no /.../upload-functions.php
86 content_filtered_save_pre filter no /.../post.php
87 content_save_pre filter no xmlrpc.php
88 content_save_pre filter no /.../post.php
89 create_category action no /.../admin-db.php
90 create_user_query filter no /.../registration.php
91 cron_schedules filter YES /.../cron.php
92 date_rewrite_rules filter no /.../rewrite.php
93 day_link filter no /.../link-template.php
94 dbx_page_advanced action no /.../edit-page-form.php
95 dbx_page_sidebar action no /.../edit-page-form.php
96 dbx_post_advanced action no /.../edit-form-advanced.php
97 dbx_post_sidebar action no /.../edit-form-advanced.php
98 deactivate_trim({$_GET[plugin]} note action no /.../plugins.php
99 default_content filter no /.../admin-functions.php
100 default_excerpt filter no /.../admin-functions.php
101 default_title filter no /.../admin-functions.php
102 delete_attachment action no /.../post.php
103 delete_category action no /.../admin-db.php
104 delete_comment action no /.../comment.php
105 delete_link action no /.../admin-db.php
106 delete_post action no /.../post.php
107 delete_user action no /.../admin-db.php
108 do_robots action YES /.../template-loader.php
109 do_robotstxt action YES /.../functions.php
110 edit_attachment action no /.../post.php
111 edit_category action no /.../admin-db.php
112 edit_category action no /.../post.php
113 edit_category_form action YES /.../edit-category-form.php
114 edit_category_form_pre action YES /.../edit-category-form.php
115 edit_comment action no /.../comment.php
116 edit_form_advanced action no /.../edit-form-advanced.php
117 edit_link action no /.../admin-db.php
118 edit_page_form action no /.../edit-page-form.php
119 edit_post action no /.../comment.php
120 edit_post action no /.../post.php
121 edit_user_profile action no /.../user-edit.php
122 excerpt_edit_pre filter no /.../admin-functions.php
123 excerpt_save_pre filter no /.../post.php
124 explain_nonce_{$verb}-{$noun} note filter YES /.../functions.php
125 feed_link filter no /.../link-template.php
126 format_to_edit filter no /.../formatting.php
127 format_to_post filter no /.../formatting.php
128 found_posts filter YES /.../query.php
129 found_posts_query filter YES /.../query.php
130 generate_rewrite_rules action no /.../rewrite.php
131 gettext filter no /.../l10n.php
132 get_attached_file filter YES /.../post.php
133 get_bookmarks filter YES /.../bookmark.php
134 get_categories filter YES /.../category.php
135 get_category filter no /.../category.php
136 get_comments_number filter no /.../comment-template.php
137 get_comment_author filter no /.../comment-template.php
138 get_comment_author_email filter no /.../comment-template.php
139 get_comment_author_IP filter no /.../comment-template.php
140 get_comment_author_link filter no /.../comment-template.php
141 get_comment_author_url filter no /.../comment-template.php
142 get_comment_author_url_link filter no /.../comment-template.php
143 get_comment_date filter no /.../comment-template.php
144 get_comment_excerpt filter no /.../comment-template.php
145 get_comment_ID filter no /.../comment-template.php
146 get_comment_text filter no /.../comment-template.php
147 get_comment_time filter no /.../comment-template.php
148 get_comment_type filter no /.../comment-template.php
149 get_editable_authors filter no /.../admin-db.php
150 get_enclosed filter no /.../post.php
151 get_footer action YES /.../general-template.php
152 get_header action YES /.../general-template.php
153 get_next_post_join filter YES /.../link-template.php
154 get_next_post_sort filter YES /.../link-template.php
155 get_next_post_where filter YES /.../link-template.php
156 get_others_drafts filter no /.../admin-db.php
157 get_pages filter YES /.../post.php
158 get_previous_post_join filter YES /.../link-template.php
159 get_previous_post_sort filter YES /.../link-template.php
160 get_previous_post_where filter YES /.../link-template.php
161 get_pung filter no /.../post.php
162 get_the_excerpt filter no /.../post-template.php
163 get_the_guid filter no /.../post-template.php
164 get_the_modified_date filter YES /.../general-template.php
165 get_the_modified_time filter no /.../general-template.php
166 get_the_time filter no /.../general-template.php
167 get_to_ping filter no /.../post.php
168 get_users_drafts filter no /.../admin-db.php
169 home_template filter no /.../theme.php
170 icon_dir filter no /.../post-template.php
171 icon_dir filter no /.../post.php
172 icon_dir_uri filter no /.../post.php
173 init action no wp-settings.php
174 js_escape filter no /.../formatting.php
175 kubrick_header_color filter no /.../functions.php
176 kubrick_header_display filter no /.../functions.php
177 kubrick_header_image filter no /.../functions.php
178 link_rating filter no /.../bookmark-template.php
179 list_cats filter no /.../category-template.php
180 list_cats filter no /.../classes.php
181 list_cats_exclusions filter no /.../category.php
182 load-{$pagenow} note action YES /.../admin.php
183 load-{$page_hook} note action YES /.../admin.php
184 load-{$plugin_page} note action YES /.../admin.php
185 locale filter no /.../l10n.php
186 locale_stylesheet_uri filter YES /.../theme.php
187 loginout filter no /.../general-template.php
188 login_errors filter YES wp-login.php
189 login_form action YES wp-login.php
190 login_head action YES wp-login.php
191 login_headertitle filter YES wp-login.php
192 login_headerurl filter YES wp-login.php
193 login_message filter YES wp-login.php
194 loop_end action no /.../query.php
195 loop_start action no /.../query.php
196 lostpassword_form action YES wp-login.php
197 lostpassword_post action YES wp-login.php
198 lost_password action no wp-login.php
199 manage_link_columns filter YES /.../link-manager.php
200 manage_link_custom_column action YES /.../link-manager.php
201 manage_posts_columns filter no /.../edit.php
202 manage_posts_custom_column action no /.../edit.php
203 mce_browsers filter no /.../tiny_mce_config.php
204 mce_buttons filter no /.../tiny_mce_config.php
205 mce_buttons_2 filter no /.../tiny_mce_config.php
206 mce_buttons_3 filter no /.../tiny_mce_config.php
207 mce_css filter YES /.../tiny_mce_config.php
208 mce_options action no /.../tiny_mce_config.php
209 mce_plugins filter no /.../tiny_mce_config.php
210 mce_valid_elements filter no /.../tiny_mce_config.php
211 mod_rewrite_rules filter no /.../rewrite.php
212 month_link filter no /.../link-template.php
213 name_save_pre filter no /.../post.php
214 option_{$setting} note filter no /.../functions.php
215 page_link filter no /.../link-template.php
216 page_rewrite_rules filter no /.../rewrite.php
217 page_template filter no /.../theme.php
218 parse_query action no /.../query.php
219 parse_request action YES /.../classes.php
220 password_reset action no wp-login.php
221 personal_options_update action no /.../profile-update.php
222 phone_content filter no wp-mail.php
223 pingback_post action no xmlrpc.php
224 ping_status_pre filter no /.../post.php
225 plugins_loaded action no wp-settings.php
226 postmeta_form_limit filter YES /.../admin-functions.php
227 posts_distinct filter YES /.../query.php
228 posts_fields filter YES /.../query.php
229 posts_groupby filter no /.../query.php
230 posts_join filter no /.../query.php
231 posts_join_paged filter no /.../query.php
232 posts_orderby filter no /.../query.php
233 posts_request filter no /.../query.php
234 posts_where filter no /.../query.php
235 posts_where_paged filter no /.../query.php
236 post_comments_feed_link filter no /.../feed.php
237 post_limits filter YES /.../query.php
238 post_link filter no /.../link-template.php
239 post_mime_type_pre filter no /.../post.php
240 post_rewrite_rules filter no /.../rewrite.php
241 prepend_attachment filter no /.../post-template.php
242 preprocess_comment filter no /.../comment.php
243 preview_page_link filter YES /.../page.php
244 preview_post_link filter no /.../post.php
245 pre_category_description filter no /.../admin-db.php
246 pre_category_name filter no /.../admin-db.php
247 pre_category_nicename filter no /.../admin-db.php
248 pre_comment_approved filter no /.../comment.php
249 pre_comment_author_email filter no /.../comment.php
250 pre_comment_author_name filter no /.../comment.php
251 pre_comment_author_url filter no /.../comment.php
252 pre_comment_content filter no /.../comment.php
253 pre_comment_user_agent filter no /.../comment.php
254 pre_comment_user_ip filter no /.../comment.php
255 pre_get_posts action no /.../query.php
256 pre_link_description filter no /.../admin-db.php
257 pre_link_image filter no /.../admin-db.php
258 pre_link_name filter no /.../admin-db.php
259 pre_link_notes filter no /.../admin-db.php
260 pre_link_rel filter no /.../admin-db.php
261 pre_link_rss filter no /.../admin-db.php
262 pre_link_target filter no /.../admin-db.php
263 pre_link_url filter no /.../admin-db.php
264 pre_option_{$option->option_name} note filter no /.../functions.php
265 pre_ping action no /.../comment.php
266 pre_upload_error filter YES xmlrpc.php
267 pre_user_description filter no /.../registration.php
268 pre_user_display_name filter no /.../registration.php
269 pre_user_email filter no /.../registration.php
270 pre_user_first_name filter no /.../registration.php
271 pre_user_id filter no /.../comment.php
272 pre_user_last_name filter no /.../registration.php
273 pre_user_login filter no /.../users.php
274 pre_user_login filter no /.../registration.php
275 pre_user_nicename filter no /.../registration.php
276 pre_user_nickname filter no /.../registration.php
277 pre_user_url filter no /.../registration.php
278 private_to_published action no /.../post.php
279 profile_personal_options action no /.../profile.php
280 profile_update action no /.../registration.php
281 publish_page action YES /.../post.php
282 publish_phone action no wp-mail.php
283 publish_post action no /.../post.php
284 query filter no /.../wp-db.php
285 query_string filter no /.../classes.php
286 query_vars filter no /.../classes.php
287 rdf_header action no wp-rdf.php
288 rdf_item action no wp-rdf.php
289 rdf_ns action no wp-rdf.php
290 register filter no /.../general-template.php
291 register_form action YES wp-login.php
292 register_post action YES wp-login.php
293 registration_errors filter YES wp-login.php
294 request filter YES /.../classes.php
295 restrict_manage_posts action YES /.../edit.php
296 retreive_password action no wp-login.php
297 retrieve_password action no wp-login.php
298 rewrite_rules filter no /.../rewrite.php
299 rewrite_rules_array filter no /.../rewrite.php
300 richedit_pre filter no /.../formatting.php
301 role_has_cap filter no /.../capabilities.php
302 root_rewrite_rules filter no /.../rewrite.php
303 rss2_head action no wp-rss2.php
304 rss2_head action no /.../export.php
305 rss2_item action no wp-rss2.php
306 rss2_ns action no wp-rss2.php
307 rss_head action no wp-rss.php
308 rss_item action no wp-rss.php
309 sanitize_comment_cookies action no wp-settings.php
310 sanitize_title filter no /.../formatting.php
311 sanitize_user filter no /.../formatting.php
312 save_post action no /.../post.php
313 search_rewrite_rules filter no /.../rewrite.php
314 send_headers action YES /.../classes.php
315 set_current_user action no /.../pluggable.php
316 show_password_fields filter no /.../profile.php
317 show_password_fields filter no /.../user-edit.php
318 show_password_fields filter no /.../users.php
319 show_user_profile action no /.../profile.php
320 shutdown action no wp-settings.php
321 simple_edit_form action no /.../edit-form.php
322 single_cat_title filter no /.../general-template.php
323 single_post_title filter no /.../general-template.php
324 status_save_pre filter no /.../post.php
325 stylesheet filter no /.../theme.php
326 stylesheet_directory filter no /.../theme.php
327 stylesheet_directory_uri filter no /.../theme.php
328 stylesheet_uri filter no /.../theme.php
329 switch_theme action no /.../themes.php
330 switch_theme action no /.../theme.php
331 template filter no /.../theme.php
332 template_directory filter no /.../theme.php
333 template_directory_uri filter no /.../theme.php
334 template_redirect action no /.../template-loader.php
335 theme_root filter no /.../theme.php
336 theme_root_uri filter no /.../theme.php
337 the_author filter no /.../author-template.php
338 the_author_email filter no /.../author-template.php
339 the_category filter no /.../category-template.php
340 the_category_rss filter no /.../feed.php
341 the_content filter no /.../comment.php
342 the_content filter no /.../formatting.php
343 the_content filter no /.../post-template.php
344 the_content_rss filter no /.../feed.php
345 the_date filter no /.../general-template.php
346 the_editor filter YES /.../general-template.php
347 the_editor_content filter YES /.../general-template.php
348 the_excerpt filter no /.../comment.php
349 the_excerpt filter no /.../post-template.php
350 the_excerpt_rss filter no /.../feed.php
351 the_modified_date filter YES /.../general-template.php
352 the_modified_time filter no /.../general-template.php
353 the_permalink filter no /.../link-template.php
354 the_posts filter no /.../query.php
355 the_time filter no /.../general-template.php
356 the_title filter no /.../comment-template.php
357 the_title filter no /.../comment.php
358 the_title filter no /.../deprecated.php
359 the_title filter no /.../feed.php
360 the_title filter no /.../link-template.php
361 the_title filter no /.../post-template.php
362 the_title filter no wp-commentsrss2.php
363 the_title_rss filter no /.../feed.php
364 the_title_rss filter no wp-commentsrss2.php
365 the_weekday filter no /.../general-template.php
366 the_weekday_date filter no /.../general-template.php
367 thumbnail_filename filter no /.../admin-functions.php
368 tinymce_before_init action no /.../tiny_mce_config.php
369 tiny_mce_config_url filter YES /.../script-loader.php
370 title_edit_pre filter no /.../admin-functions.php
371 title_save_pre filter no /.../post.php
372 trackback_post action no wp-trackback.php
373 update_attached_file filter YES /.../post.php
374 update_option_{$option_name} note action no /.../functions.php
375 update_user_query filter no /.../registration.php
376 uploading_iframe_src filter no /.../edit-form-advanced.php
377 uploading_iframe_src filter no /.../edit-page-form.php
378 upload_dir filter no /.../functions.php
379 upload_files_{$tab} note action YES /.../upload.php
380 upload_mimes filter no /.../functions.php
381 user_can_richedit filter YES /.../general-template.php
382 user_has_cap filter no /.../capabilities.php
383 user_register action no /.../registration.php
384 user_registration_email filter YES wp-login.php
385 validate_username filter no /.../registration.php
386 wp action YES /.../classes.php
387 wp_ajax_{$_POST[action]} note action YES /.../admin-ajax.php
388 wp_authenticate action no wp-login.php
389 wp_blacklist_check action no /.../comment.php
390 wp_create_file_in_uploads filter YES /.../custom-header.php
391 wp_create_thumbnail filter YES /.../admin-functions.php
392 wp_delete_file filter YES /.../custom-header.php
393 wp_delete_file filter no /.../post.php
394 wp_dropdown_cats filter YES /.../category-template.php
395 wp_dropdown_pages filter YES /.../post-template.php
396 wp_footer action no /.../general-template.php
397 wp_generate_attachment_metadata filter YES /.../admin-functions.php
398 wp_get_attachment_metadata filter YES /.../post.php
399 wp_get_attachment_thumb_file filter YES /.../post.php
400 wp_get_attachment_thumb_url filter YES /.../post.php
401 wp_get_attachment_url filter YES /.../post.php
402 wp_handle_upload filter YES xmlrpc.php
403 wp_handle_upload filter no /.../admin-functions.php
404 wp_head action no /.../general-template.php
405 wp_insert_post action no /.../post.php
406 wp_list_categories filter YES /.../category-template.php
407 wp_list_pages filter no /.../post-template.php
408 wp_list_pages_excludes filter YES /.../post-template.php
409 wp_login action no wp-login.php
410 wp_logout action no wp-login.php
411 wp_meta action no /.../general-template.php
412 wp_mime_type_icon filter YES /.../post.php
413 wp_print_scripts action YES /.../script-loader.php
414 wp_redirect filter YES /.../pluggable.php
415 wp_set_comment_status action no /.../comment.php
416 wp_thumbnail_creation_size_limit filter YES /.../admin-functions.php
417 wp_thumbnail_max_side_length filter YES /.../admin-functions.php
418 wp_title filter no /.../general-template.php
419 wp_update_attachment_metadata filter YES /.../post.php
420 wp_upload_tabs filter YES /.../upload.php
421 xmlrpc_methods filter no xmlrpc.php
422 xmlrpc_publish_post action YES /.../post.php
423 year_link filter no /.../link-template.php
424 _get_page_link filter YES /.../link-template.php
425 {$hook} note action YES wp-cron.php
426 {$hook} note action no /.../functions.php
427 {$page_hook} note action no /.../admin.php
428 {$type}_template note filter no /.../theme.php

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.