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