All hooks in WP 2.0

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_ note action YES /.../plugins.php
2 activity_box_end action YES /.../index.php
3 add_attachment action YES /.../functions-post.php
4 add_category action no /.../admin-db.php
5 add_link action YES /.../admin-db.php
6 add_ping filter YES /.../functions-post.php
7 admin_footer action no /.../admin-footer.php
8 admin_footer action no /.../bookmarklet.php
9 admin_head action no /.../admin-header.php
10 admin_menu action no /.../menu.php
11 all_options filter no /.../functions.php
12 atom_entry action YES wp-atom.php
13 atom_head action YES wp-atom.php
14 atom_ns action YES wp-atom.php
15 attachment_icon filter YES /.../template-functions-post.php
16 attachment_innerHTML filter YES /.../template-functions-post.php
17 attachment_link filter YES /.../template-functions-links.php
18 attachment_max_dims filter YES /.../template-functions-post.php
19 author_email filter no /.../comment-functions.php
20 author_feed_link filter no /.../feed-functions.php
21 author_link filter no /.../template-functions-author.php
22 author_rewrite_rules filter no /.../classes.php
23 bloginfo filter no /.../template-functions-general.php
24 category_description filter no /.../template-functions-category.php
25 category_feed_link filter no /.../feed-functions.php
26 category_link filter no /.../template-functions-category.php
27 category_rewrite_rules filter no /.../classes.php
28 category_save_pre filter no /.../functions-post.php
29 category_template filter no /.../functions.php
30 check_admin_referer action no /.../admin-functions.php
31 check_passwords action no /.../admin-functions.php
32 comments_number filter no /.../comment-functions.php
33 comments_popup_template filter no /.../functions.php
34 comments_rewrite_rules filter no /.../classes.php
35 comments_template filter no /.../comment-functions.php
36 comment_author filter no /.../comment-functions.php
37 comment_author_rss filter no /.../feed-functions.php
38 comment_closed action no wp-comments-post.php
39 comment_edit_pre filter no /.../admin-functions.php
40 comment_email filter no /.../comment-functions.php
41 comment_excerpt filter no /.../comment-functions.php
42 comment_flood_trigger action no /.../comment-functions.php
43 comment_form action no /.../comments-popup.php
44 comment_form action no /.../comments.php
45 comment_form action no /.../comments-popup.php
46 comment_form action no /.../comments.php
47 comment_id_not_found action no wp-comments-post.php
48 comment_moderation_subject filter no /.../pluggable-functions.php
49 comment_moderation_text filter no /.../pluggable-functions.php
50 comment_notification_headers filter no /.../pluggable-functions.php
51 comment_notification_subject filter no /.../pluggable-functions.php
52 comment_notification_text filter no /.../pluggable-functions.php
53 comment_on_draft action no wp-comments-post.php
54 comment_post action no /.../comment-functions.php
55 comment_save_pre filter no /.../comment-functions.php
56 comment_status_pre filter YES /.../functions-post.php
57 comment_text filter no /.../comment-functions.php
58 comment_text_rss filter no /.../feed-functions.php
59 comment_url filter no /.../comment-functions.php
60 content_edit_pre filter no /.../admin-functions.php
61 content_save_pre filter no xmlrpc.php
62 content_save_pre filter no /.../functions-post.php
63 core_files_loaded action no wp-settings.php
64 create_category action YES /.../admin-db.php
65 create_user_query filter YES /.../registration-functions.php
66 date_rewrite_rules filter no /.../classes.php
67 day_link filter no /.../template-functions-links.php
68 deactivate_ note action YES /.../plugins.php
69 default_content filter no /.../admin-functions.php
70 default_excerpt filter no /.../admin-functions.php
71 default_title filter no /.../admin-functions.php
72 delete_attachment action YES /.../functions-post.php
73 delete_category action no /.../admin-db.php
74 delete_comment action no /.../post.php
75 delete_comment action no /.../comment-functions.php
76 delete_link action YES /.../admin-db.php
77 delete_post action no /.../functions-post.php
78 delete_user action YES /.../admin-db.php
79 edit_attachment action YES /.../functions-post.php
80 edit_category action YES /.../admin-db.php
81 edit_comment action no /.../comment-functions.php
82 edit_form_advanced action no /.../edit-form-advanced.php
83 edit_link action YES /.../admin-db.php
84 edit_page_form action no /.../edit-page-form.php
85 edit_post action no /.../functions-post.php
86 edit_user_profile action YES /.../user-edit.php
87 excerpt_edit_pre filter no /.../admin-functions.php
88 excerpt_save_pre filter no /.../functions-post.php
89 feed_link filter no /.../template-functions-links.php
90 format_to_edit filter no /.../functions-formatting.php
91 format_to_post filter no /.../functions-formatting.php
92 generate_rewrite_rules action no /.../classes.php
93 get_comments_number filter no /.../comment-functions.php
94 get_comment_author filter no /.../comment-functions.php
95 get_comment_author_email filter no /.../comment-functions.php
96 get_comment_author_IP filter no /.../comment-functions.php
97 get_comment_author_link filter no /.../comment-functions.php
98 get_comment_author_url filter no /.../comment-functions.php
99 get_comment_author_url_link filter no /.../comment-functions.php
100 get_comment_date filter no /.../comment-functions.php
101 get_comment_excerpt filter no /.../comment-functions.php
102 get_comment_ID filter no /.../comment-functions.php
103 get_comment_text filter no /.../comment-functions.php
104 get_comment_time filter no /.../comment-functions.php
105 get_comment_type filter no /.../comment-functions.php
106 get_editable_authors filter YES /.../admin-db.php
107 get_enclosed filter YES /.../functions-post.php
108 get_others_drafts filter YES /.../admin-db.php
109 get_pung filter YES /.../functions-post.php
110 get_the_excerpt filter no /.../template-functions-post.php
111 get_the_guid filter no /.../template-functions-post.php
112 get_the_modified_time filter YES /.../template-functions-general.php
113 get_the_time filter no /.../template-functions-general.php
114 get_to_ping filter YES /.../functions-post.php
115 get_users_drafts filter YES /.../admin-db.php
116 home_template filter no /.../functions.php
117 icon_dir filter YES /.../template-functions-post.php
118 icon_dir_uri filter YES /.../template-functions-post.php
119 init action no wp-settings.php
120 kubrick_header_color filter YES /.../functions.php
121 kubrick_header_display filter YES /.../functions.php
122 kubrick_header_image filter YES /.../functions.php
123 link_rating filter no /.../links.php
124 list_cats filter no /.../template-functions-category.php
125 list_cats_exclusions filter no /.../template-functions-category.php
126 locale filter no /.../wp-l10n.php
127 loginout filter no /.../template-functions-general.php
128 loop_end action YES /.../classes.php
129 loop_start action YES /.../classes.php
130 lost_password action no wp-login.php
131 manage_posts_columns filter no /.../edit.php
132 manage_posts_custom_column action no /.../edit.php
133 mce_browsers filter YES /.../tiny_mce_gzip.php
134 mce_buttons filter YES /.../tiny_mce_gzip.php
135 mce_buttons_2 filter YES /.../tiny_mce_gzip.php
136 mce_buttons_3 filter YES /.../tiny_mce_gzip.php
137 mce_options action YES /.../tiny_mce_gzip.php
138 mce_plugins filter YES /.../tiny_mce_gzip.php
139 mce_theme filter YES /.../tiny_mce_gzip.php
140 mce_valid_elements filter YES /.../tiny_mce_gzip.php
141 mod_rewrite_rules filter no /.../classes.php
142 month_link filter no /.../template-functions-links.php
143 name_save_pre filter no /.../functions-post.php
144 option_ note filter no /.../functions.php
145 page_link filter no /.../template-functions-links.php
146 page_rewrite_rules filter no /.../classes.php
147 page_template filter no /.../functions.php
148 parse_query action no /.../classes.php
149 password_reset action no wp-login.php
150 personal_options_update action YES /.../profile-update.php
151 phone_content filter no wp-mail.php
152 pingback_post action no xmlrpc.php
153 ping_status_pre filter YES /.../functions-post.php
154 plugins_loaded action no wp-settings.php
155 posts_groupby filter YES /.../classes.php
156 posts_join filter no /.../classes.php
157 posts_join_paged filter no /.../classes.php
158 posts_orderby filter no /.../classes.php
159 posts_request filter YES /.../classes.php
160 posts_where filter no /.../classes.php
161 posts_where_paged filter no /.../classes.php
162 post_comments_feed_link filter no /.../feed-functions.php
163 post_link filter no /.../template-functions-links.php
164 post_mime_type_pre filter YES /.../functions-post.php
165 post_rewrite_rules filter no /.../classes.php
166 prepend_attachment filter YES /.../template-functions-post.php
167 preprocess_comment filter no /.../comment-functions.php
168 pre_comment_approved filter no /.../comment-functions.php
169 pre_comment_author_email filter no /.../comment-functions.php
170 pre_comment_author_name filter no /.../comment-functions.php
171 pre_comment_author_url filter no /.../comment-functions.php
172 pre_comment_content filter no /.../comment-functions.php
173 pre_comment_user_agent filter no /.../comment-functions.php
174 pre_comment_user_domain filter no /.../comment-functions.php
175 pre_comment_user_ip filter no /.../comment-functions.php
176 pre_get_posts action YES /.../classes.php
177 pre_option_ note filter no /.../functions.php
178 pre_ping action YES /.../comment-functions.php
179 pre_user_id filter no /.../comment-functions.php
180 private_to_published action no /.../functions-post.php
181 profile_personal_options action YES /.../profile.php
182 profile_update action YES /.../registration-functions.php
183 publish_phone action no wp-mail.php
184 publish_post action no /.../functions-post.php
185 query_string filter no /.../classes.php
186 query_vars filter no /.../classes.php
187 rdf_header action YES wp-rdf.php
188 rdf_item action YES wp-rdf.php
189 rdf_ns action YES wp-rdf.php
190 register filter no /.../template-functions-general.php
191 retreive_password action no wp-login.php
192 retrieve_password action no wp-login.php
193 rewrite_rules filter no /.../classes.php
194 rewrite_rules_array filter no /.../classes.php
195 richedit_pre filter YES /.../functions-formatting.php
196 role_has_cap filter YES /.../capabilities.php
197 root_rewrite_rules filter no /.../classes.php
198 rss2_head action YES wp-rss2.php
199 rss2_item action YES wp-rss2.php
200 rss2_ns action YES wp-rss2.php
201 rss_head action YES wp-rss.php
202 rss_item action YES wp-rss.php
203 sanitize_title filter no /.../functions-formatting.php
204 save_post action no /.../functions-post.php
205 search_rewrite_rules filter no /.../classes.php
206 show_password_fields filter no /.../profile.php
207 show_password_fields filter no /.../user-edit.php
208 show_password_fields filter no /.../users.php
209 show_user_profile action YES /.../profile.php
210 shutdown action no wp-settings.php
211 simple_edit_form action no /.../edit-form.php
212 single_post_title filter no /.../template-functions-general.php
213 status_save_pre filter no /.../functions-post.php
214 stylesheet filter no /.../functions.php
215 stylesheet_directory filter no /.../functions.php
216 stylesheet_directory_uri filter no /.../functions.php
217 stylesheet_uri filter no /.../functions.php
218 switch_theme action no /.../themes.php
219 switch_theme action no /.../admin-functions.php
220 template filter no /.../functions.php
221 template_directory filter no /.../functions.php
222 template_directory_uri filter no /.../functions.php
223 template_redirect action no /.../template-loader.php
224 theme_root filter no /.../functions.php
225 theme_root_uri filter no /.../functions.php
226 the_author filter YES /.../template-functions-author.php
227 the_author_email filter no /.../template-functions-author.php
228 the_category filter no /.../template-functions-category.php
229 the_category_rss filter no /.../feed-functions.php
230 the_content filter no /.../functions-formatting.php
231 the_content filter no /.../functions-post.php
232 the_content filter no /.../template-functions-post.php
233 the_content_rss filter YES /.../feed-functions.php
234 the_date filter no /.../template-functions-general.php
235 the_excerpt filter no /.../functions-post.php
236 the_excerpt filter no /.../template-functions-post.php
237 the_excerpt_rss filter no /.../feed-functions.php
238 the_modified_time filter YES /.../template-functions-general.php
239 the_permalink filter no /.../template-functions-links.php
240 the_posts filter no /.../classes.php
241 the_time filter no /.../template-functions-general.php
242 the_title filter no wp-commentsrss2.php
243 the_title filter no /.../feed-functions.php
244 the_title filter no /.../functions-post.php
245 the_title filter no /.../template-functions-links.php
246 the_title filter no /.../template-functions-post.php
247 the_title_rss filter no wp-commentsrss2.php
248 the_title_rss filter no /.../feed-functions.php
249 the_weekday filter no /.../template-functions-general.php
250 the_weekday_date filter no /.../template-functions-general.php
251 thumbnail_filename filter YES /.../admin-functions.php
252 tinymce_before_init action YES /.../tiny_mce_gzip.php
253 title_edit_pre filter no /.../admin-functions.php
254 title_save_pre filter no /.../functions-post.php
255 trackback_post action no wp-trackback.php
256 update_user_query filter YES /.../registration-functions.php
257 uploading_iframe_src filter YES /.../edit-form-advanced.php
258 uploading_iframe_src filter no /.../edit-page-form.php
259 upload_dir filter YES /.../functions-post.php
260 upload_mimes filter YES /.../admin-functions.php
261 user_has_cap filter YES /.../capabilities.php
262 user_register action no /.../registration-functions.php
263 wp_authenticate action no wp-login.php
264 wp_blacklist_check action no /.../functions-post.php
265 wp_footer action no /.../functions.php
266 wp_head action no /.../functions.php
267 wp_insert_post action YES /.../functions-post.php
268 wp_list_pages filter no /.../template-functions-post.php
269 wp_login action no wp-login.php
270 wp_logout action no wp-login.php
271 wp_meta action no /.../template-functions-general.php
272 wp_set_comment_status action no /.../comment-functions.php
273 wp_title filter YES /.../template-functions-general.php
274 xmlrpc_methods filter no xmlrpc.php
275 year_link filter no /.../template-functions-links.php
276 {$type}_template note filter no /.../functions.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.