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 | add_category | action | YES | 1 | |
| 2 | admin_menu | action | YES | 1 | |
| 3 | all_options | filter | YES | 1 | |
| 4 | author_feed_link | filter | YES | 1 | |
| 5 | author_link | filter | YES | 1 | |
| 6 | author_rewrite_rules | filter | YES | 1 | |
| 7 | category_feed_link | filter | YES | 1 | |
| 8 | category_link | filter | YES | 1 | |
| 9 | category_rewrite_rules | filter | YES | 1 | |
| 10 | category_save_pre | filter | YES | 1 | |
| 11 | category_template | filter | YES | 1 | |
| 12 | check_admin_referer | action | YES | 1 | |
| 13 | check_passwords | action | YES | 1 | |
| 14 | comments_number | filter | YES | 1 | |
| 15 | comments_popup_template | filter | YES | 1 | |
| 16 | comments_rewrite_rules | filter | YES | 1 | |
| 17 | comments_template | filter | YES | 1 | |
| 18 | comment_author_rss | filter | YES | 1 | |
| 19 | comment_closed | action | YES | 1 | |
| 20 | comment_content_presave | filter | YES | 1 | |
| 21 | comment_edit_pre | filter | YES | 1 | |
| 22 | comment_flood_trigger | action | YES | 1 | |
| 23 | comment_form | action | YES | 1 | |
| 24 | comment_id_not_found | action | YES | 1 | |
| 25 | comment_moderation_subject | filter | YES | 1 | |
| 26 | comment_moderation_text | filter | YES | 1 | |
| 27 | comment_notification_headers | filter | YES | 1 | |
| 28 | comment_notification_subject | filter | YES | 1 | |
| 29 | comment_notification_text | filter | YES | 1 | |
| 30 | comment_on_draft | action | YES | 1 | |
| 31 | comment_save_pre | filter | YES | 1 | |
| 32 | comment_text_rss | filter | YES | 1 | |
| 33 | content_edit_pre | filter | YES | 1 | |
| 34 | content_save_pre | filter | YES | 1 | |
| 35 | core_files_loaded | action | YES | 1 | |
| 36 | date_rewrite_rules | filter | YES | 1 | |
| 37 | day_link | filter | YES | 1 | |
| 38 | default_content | filter | YES | 1 | |
| 39 | default_excerpt | filter | YES | 1 | |
| 40 | default_title | filter | YES | 1 | |
| 41 | delete_category | action | YES | 1 | |
| 42 | edit_form_advanced | action | YES | 1 | |
| 43 | edit_page_form | action | YES | 1 | |
| 44 | excerpt_edit_pre | filter | YES | 1 | |
| 45 | excerpt_save_pre | filter | YES | 1 | |
| 46 | feed_link | filter | YES | 1 | |
| 47 | generate_rewrite_rules | action | YES | 1 | |
| 48 | get_comments_number | filter | YES | 1 | |
| 49 | get_comment_author | filter | YES | 1 | |
| 50 | get_comment_author_email | filter | YES | 1 | |
| 51 | get_comment_author_IP | filter | YES | 1 | |
| 52 | get_comment_author_link | filter | YES | 1 | |
| 53 | get_comment_author_url | filter | YES | 1 | |
| 54 | get_comment_author_url_link | filter | YES | 1 | |
| 55 | get_comment_date | filter | YES | 1 | |
| 56 | get_comment_excerpt | filter | YES | 1 | |
| 57 | get_comment_ID | filter | YES | 1 | |
| 58 | get_comment_text | filter | YES | 1 | |
| 59 | get_comment_time | filter | YES | 1 | |
| 60 | get_comment_type | filter | YES | 1 | |
| 61 | get_the_excerpt | filter | YES | 1 | |
| 62 | get_the_guid | filter | YES | 1 | |
| 63 | get_the_time | filter | YES | 1 | |
| 64 | home_template | filter | YES | 1 | |
| 65 | init | action | YES | 1 | |
| 66 | link_rating | filter | YES | 1 | |
| 67 | list_cats_exclusions | filter | YES | 1 | |
| 68 | locale | filter | YES | 1 | |
| 69 | loginout | filter | YES | 1 | |
| 70 | lost_password | action | YES | 1 | |
| 71 | manage_posts_columns | filter | YES | 1 | |
| 72 | manage_posts_custom_column | action | YES | 1 | |
| 73 | mod_rewrite_rules | filter | YES | 1 | |
| 74 | month_link | filter | YES | 1 | |
| 75 | name_save_pre | filter | YES | 1 | |
| 76 | option_{$setting} | note | filter | YES | 1 |
| 77 | page_link | filter | YES | 1 | |
| 78 | page_rewrite_rules | filter | YES | 1 | |
| 79 | page_template | filter | YES | 1 | |
| 80 | parse_query | action | YES | 1 | |
| 81 | password_reset | action | YES | 1 | |
| 82 | pingback_post | action | YES | 1 | |
| 83 | plugins_loaded | action | YES | 1 | |
| 84 | posts_join | filter | YES | 1 | |
| 85 | posts_join_paged | filter | YES | 1 | |
| 86 | posts_orderby | filter | YES | 1 | |
| 87 | posts_where | filter | YES | 1 | |
| 88 | posts_where_paged | filter | YES | 1 | |
| 89 | post_comments_feed_link | filter | YES | 1 | |
| 90 | post_link | filter | YES | 1 | |
| 91 | post_rewrite_rules | filter | YES | 1 | |
| 92 | preprocess_comment | filter | YES | 1 | |
| 93 | pre_comment_approved | filter | YES | 1 | |
| 94 | pre_comment_author_email | filter | YES | 1 | |
| 95 | pre_comment_author_name | filter | YES | 1 | |
| 96 | pre_comment_author_url | filter | YES | 1 | |
| 97 | pre_comment_content | filter | YES | 1 | |
| 98 | pre_comment_user_agent | filter | YES | 1 | |
| 99 | pre_comment_user_domain | filter | YES | 1 | |
| 100 | pre_comment_user_ip | filter | YES | 1 | |
| 101 | pre_option_{$option->option_name} | note | filter | YES | 1 |
| 102 | pre_user_id | filter | YES | 1 | |
| 103 | private_to_published | action | YES | 1 | |
| 104 | query_string | filter | YES | 1 | |
| 105 | query_vars | filter | YES | 1 | |
| 106 | register | filter | YES | 1 | |
| 107 | retreive_password | action | YES | 1 | |
| 108 | retrieve_password | action | YES | 1 | |
| 109 | rewrite_rules | filter | YES | 1 | |
| 110 | rewrite_rules_array | filter | YES | 1 | |
| 111 | root_rewrite_rules | filter | YES | 1 | |
| 112 | save_post | action | YES | 1 | |
| 113 | search_rewrite_rules | filter | YES | 1 | |
| 114 | show_password_fields | filter | YES | 1 | |
| 115 | simple_edit_form | action | YES | 1 | |
| 116 | status_save_pre | filter | YES | 1 | |
| 117 | stylesheet | filter | YES | 1 | |
| 118 | stylesheet_directory | filter | YES | 1 | |
| 119 | stylesheet_directory_uri | filter | YES | 1 | |
| 120 | stylesheet_uri | filter | YES | 1 | |
| 121 | switch_theme | action | YES | 1 | |
| 122 | template | filter | YES | 1 | |
| 123 | template_directory | filter | YES | 1 | |
| 124 | template_directory_uri | filter | YES | 1 | |
| 125 | template_redirect | action | YES | 1 | |
| 126 | theme_root | filter | YES | 1 | |
| 127 | theme_root_uri | filter | YES | 1 | |
| 128 | the_author_email | filter | YES | 1 | |
| 129 | the_permalink | filter | YES | 1 | |
| 130 | the_posts | filter | YES | 1 | |
| 131 | title_edit_pre | filter | YES | 1 | |
| 132 | title_save_pre | filter | YES | 1 | |
| 133 | user_register | action | YES | 1 | |
| 134 | wp_authenticate | action | YES | 1 | |
| 135 | wp_blacklist_check | action | YES | 1 | |
| 136 | wp_footer | action | YES | 1 | |
| 137 | wp_list_pages | filter | YES | 1 | |
| 138 | wp_login | action | YES | 1 | |
| 139 | wp_logout | action | YES | 1 | |
| 140 | wp_meta | action | YES | 1 | |
| 141 | wp_set_comment_status | action | YES | 1 | |
| 142 | xmlrpc_methods | filter | YES | 1 | |
| 143 | year_link | filter | YES | 1 | |
| 144 | {$page_hook} | note | action | YES | 1 |
| 145 | {$type}_template | note | 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.