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 | admin_notices | action | YES | 1 | |
2 | attribute_escape | filter | YES | 1 | |
3 | bloginfo_url | filter | YES | 1 | |
4 | comment_edit_redirect | filter | YES | 1 | |
5 | comment_post_redirect | filter | YES | 1 | |
6 | content_filtered_save_pre | filter | YES | 1 | |
7 | dbx_page_advanced | action | YES | 1 | |
8 | dbx_page_sidebar | action | YES | 1 | |
9 | dbx_post_advanced | action | YES | 1 | |
10 | dbx_post_sidebar | action | YES | 1 | |
11 | gettext | filter | YES | 1 | |
12 | get_category | filter | YES | 1 | |
13 | js_escape | filter | YES | 1 | |
14 | preview_post_link | filter | YES | 1 | |
15 | pre_category_description | filter | YES | 1 | |
16 | pre_category_name | filter | YES | 1 | |
17 | pre_category_nicename | filter | YES | 1 | |
18 | pre_link_description | filter | YES | 1 | |
19 | pre_link_image | filter | YES | 1 | |
20 | pre_link_name | filter | YES | 1 | |
21 | pre_link_notes | filter | YES | 1 | |
22 | pre_link_rel | filter | YES | 1 | |
23 | pre_link_rss | filter | YES | 1 | |
24 | pre_link_target | filter | YES | 1 | |
25 | pre_link_url | filter | YES | 1 | |
26 | pre_user_description | filter | YES | 1 | |
27 | pre_user_display_name | filter | YES | 1 | |
28 | pre_user_email | filter | YES | 1 | |
29 | pre_user_first_name | filter | YES | 1 | |
30 | pre_user_last_name | filter | YES | 1 | |
31 | pre_user_login | filter | YES | 1 | |
32 | pre_user_nicename | filter | YES | 1 | |
33 | pre_user_nickname | filter | YES | 1 | |
34 | pre_user_url | filter | YES | 1 | |
35 | query | filter | YES | 1 | |
36 | sanitize_comment_cookies | action | YES | 1 | |
37 | sanitize_user | filter | YES | 1 | |
38 | set_current_user | action | YES | 1 | |
39 | single_cat_title | filter | YES | 1 | |
40 | update_option_{$option_name} | note | action | YES | 1 |
41 | validate_username | filter | 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.