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