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 | rss2_ns | action | YES | 1 | |
2 | delete_link | action | YES | 1 | |
3 | add_link | action | YES | 1 | |
4 | edit_link | action | YES | 1 | |
5 | delete_user | action | YES | 1 | |
6 | create_category | action | YES | 1 | |
7 | edit_category | action | YES | 1 | |
8 | rss2_item | action | YES | 1 | |
9 | rss2_head | action | YES | 1 | |
10 | tinymce_before_init | action | YES | 1 | |
11 | rss_item | action | YES | 1 | |
12 | rss_head | action | YES | 1 | |
13 | rdf_item | action | YES | 1 | |
14 | rdf_header | action | YES | 1 | |
15 | rdf_ns | action | YES | 1 | |
16 | atom_entry | action | YES | 1 | |
17 | atom_head | action | YES | 1 | |
18 | atom_ns | action | YES | 1 | |
19 | activate_{$plugin} | note | action | YES | 1 |
20 | mce_options | action | YES | 1 | |
21 | profile_update | action | YES | 1 | |
22 | delete_attachment | action | YES | 1 | |
23 | add_attachment | action | YES | 1 | |
24 | edit_attachment | action | YES | 1 | |
25 | wp_insert_post | action | YES | 1 | |
26 | pre_ping | action | YES | 1 | |
27 | loop_end | action | YES | 1 | |
28 | loop_start | action | YES | 1 | |
29 | pre_get_posts | action | YES | 1 | |
30 | edit_user_profile | action | YES | 1 | |
31 | profile_personal_options | action | YES | 1 | |
32 | show_user_profile | action | YES | 1 | |
33 | personal_options_update | action | YES | 1 | |
34 | deactivate_{$plugin} | note | action | YES | 1 |
35 | activity_box_end | action | YES | 1 | |
36 | mce_buttons | filter | YES | 1 | |
37 | mce_browsers | filter | YES | 1 | |
38 | mce_buttons_3 | filter | YES | 1 | |
39 | mce_buttons_2 | filter | YES | 1 | |
40 | user_has_cap | filter | YES | 1 | |
41 | get_enclosed | filter | YES | 1 | |
42 | get_pung | filter | YES | 1 | |
43 | post_mime_type_pre | filter | YES | 1 | |
44 | ping_status_pre | filter | YES | 1 | |
45 | comment_status_pre | filter | YES | 1 | |
46 | richedit_pre | filter | YES | 1 | |
47 | the_content_rss | filter | YES | 1 | |
48 | posts_request | filter | YES | 1 | |
49 | posts_groupby | filter | YES | 1 | |
50 | get_to_ping | filter | YES | 1 | |
51 | role_has_cap | filter | YES | 1 | |
52 | kubrick_header_display | filter | YES | 1 | |
53 | kubrick_header_color | filter | YES | 1 | |
54 | kubrick_header_image | filter | YES | 1 | |
55 | uploading_iframe_src | filter | YES | 1 | |
56 | upload_mimes | filter | YES | 1 | |
57 | thumbnail_filename | filter | YES | 1 | |
58 | get_editable_authors | filter | YES | 1 | |
59 | get_others_drafts | filter | YES | 1 | |
60 | attachment_link | filter | YES | 1 | |
61 | mce_valid_elements | filter | YES | 1 | |
62 | mce_plugins | filter | YES | 1 | |
63 | mce_theme | filter | YES | 1 | |
64 | prepend_attachment | filter | YES | 1 | |
65 | attachment_innerHTML | filter | YES | 1 | |
66 | attachment_icon | filter | YES | 1 | |
67 | attachment_max_dims | filter | YES | 1 | |
68 | icon_dir_uri | filter | YES | 1 | |
69 | icon_dir | filter | YES | 1 | |
70 | get_users_drafts | filter | YES | 1 | |
71 | get_the_modified_time | filter | YES | 1 | |
72 | the_modified_time | filter | YES | 1 | |
73 | wp_title | filter | YES | 1 | |
74 | the_author | filter | YES | 1 | |
75 | create_user_query | filter | YES | 1 | |
76 | update_user_query | filter | YES | 1 | |
77 | upload_dir | filter | YES | 1 | |
78 | add_ping | 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.