{"id":141491,"date":"2024-01-29T05:19:21","date_gmt":"2024-01-29T05:19:21","guid":{"rendered":"https:\/\/developer.wordpress.org\/?post_type=apis-handbook&#038;p=141491"},"modified":"2025-05-31T05:58:56","modified_gmt":"2025-05-31T05:58:56","slug":"filter-reference","status":"publish","type":"apis-handbook","link":"https:\/\/developer.wordpress.org\/apis\/hooks\/filter-reference\/","title":{"rendered":"Filter Reference"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This article contains an extensive (but not 100% comprehensive) list of the filter hooks available for use in plugin development in Version 2.1 and above of WordPress. For more information:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To learn more about what filter and action hooks are, see <a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/plugin-api-hooks\/\" data-type=\"theme-handbook\" data-id=\"11409\">Plugin API<\/a>.<\/li>\n\n\n\n<li>To learn about writing plugins in general, see <a href=\"https:\/\/developer.wordpress.org\/plugins\/intro\/\" data-type=\"plugin-handbook\" data-id=\"5787\">Writing a Plugin<\/a>.<\/li>\n\n\n\n<li>For a reference list of action hooks, see <a href=\"https:\/\/developer.wordpress.org\/apis\/hooks\/action-reference\/\" data-type=\"apis-handbook\" data-id=\"141498\">Plugin API\/Action Reference<\/a>.<\/li>\n\n\n\n<li>For an automatically-generated list of <em>all<\/em> WordPress hooks, see the <a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/\">WordPress Hooks Database<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Note: If you want to add to or clarify this documentation, please follow the style of the existing entries. Describe what data the filter is applied to, and if the filter function takes additional arguments, describe the argument list.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Post, Page, and Attachment (Upload) Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">See also <a href=\"\/#Category_and_Term_Filters\">#Category and Term Filters<\/a>, <a href=\"\/#Author_and_User_Filters\">#Author and User Filters<\/a>, <a href=\"\/#Link_Filters\">#Link Filters<\/a>, <a href=\"\/#Date_and_Time_Filters\">#Date and Time Filters<\/a>, and <a href=\"\/#Administrative_Filters\">#Administrative Filters<\/a> below.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Database Reads<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Filters in this section are applied to information read from the<br>database, prior to displaying on a page or editing screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/attachment_fields_to_edit\/\">attachment_fields_to_edit<\/a> : applied to the form fields to be displayed when editing an attachment. Called in the <code>get_attachment_fields_to_edit<\/code> function. Filter function arguments: an array of form fields, the post object.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/attachment_icon\/\">attachment_icon<\/a> : applied to the icon for an attachment in the <code>get_attachment_icon<\/code> function. Filter function arguments: icon file as an HTML IMG tag, attachment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/attachment_innerHTML\/\">attachment_innerHTML<\/a> : applied to the title to be used for an attachment if there is no icon, in the <code>get_attachment_innerHTML<\/code> function. Filter function arguments: inner HTML (defaults to the title), attachment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/author_edit_pre\/\">author_edit_pre<\/a> : applied to post author prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/body_class\/\">body_class<\/a> : applied to the classes for the HTML<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/content_edit_pre\/\">content_edit_pre<\/a> : applied to post content prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/content_filtered_edit_pre\/\">content_filtered_edit_pre<\/a> : applied to post content filtered prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/excerpt_edit_pre\/\">excerpt_edit_pre<\/a> : applied to post excerpt prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/date_edit_pre\/\">date_edit_pre<\/a> : applied to post date prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/date_gmt_edit_pre\/\">date_gmt_edit_pre<\/a> : applied to post date prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_attached_file\/\">get_attached_file<\/a> : applied to the attached file information retrieved by the <code>get_attached_file<\/code> function. Filter function arguments: file information, attachment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_enclosed\/\">get_enclosed<\/a> : applied to the enclosures list for a post by the <code>get_enclosed<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_pages\/\">get_pages<\/a> : applied to the list of pages returned by the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_pages\/\"><code>get_pages<\/code> function<\/a>. Filter function arguments: list of pages (each item of which contains a page data array), <code>get_pages<\/code> function argument list (telling which pages were requested).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_pung\/\">get_pung<\/a> : applied to the list of pinged URLs for a post by the <code>get_pung<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_the_archive_title\/\">get_the_archive_title<\/a> : applied to the archive&#8217;s title in the <code>get_the_archive_title<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_the_excerpt\/\">get_the_excerpt<\/a> : applied to the post&#8217;s excerpt in the <code>get_the_excerpt<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_the_guid\/\">get_the_guid<\/a> : applied to the post&#8217;s GUID in the <code>get_the_guid<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_to_ping\/\">get_to_ping<\/a> : applied to the list of URLs to ping for a post by the <code>get_to_ping<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/icon_dir\/\">icon_dir<\/a> : applied to the template&#8217;s image directory in several functions. Basically allows a plugin to specify that icons for MIME types should come from a different location.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/icon_dir_uri\/\">icon_dir_uri<\/a> : applied to the template&#8217;s image directory URI in several functions. Basically allows a plugin to specify that icons for MIME types should come from a different location.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/image_size_names_choose\/\">image_size_names_choose<\/a> : applied to the list of image sizes selectable in the Media Library. Commonly used to make <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/add_image_size\/\">custom image sizes<\/a> selectable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/mime_type_edit_pre\/\">mime_type_edit_pre<\/a> : applied to post mime type prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/modified_edit_pre\/\">modified_edit_pre<\/a> : applied to post modification date prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/modified_gmt_edit_pre\/\">modified_gmt_edit_pre<\/a> : applied to post modification gmt date prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/no_texturize_shortcodes\/\">no_texturize_shortcodes<\/a> : applied to registered shortcodes. Can be used to exempt shortcodes from the automatic texturize function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/parent_edit_pre\/\">parent_edit_pre<\/a> : applied to post parent id prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/password_edit_pre\/\">password_edit_pre<\/a> : applied to post password prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/post_class\/\">post_class<\/a> : applied to the classes of the outermost HTML element for a post. Called in the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_post_class\/\"><code>get_post_class<\/code><\/a> function. Filter function arguments: an array of class names, an array of additional class names that were added to the first array, and the post ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_kses\/\">pre_kses<\/a> : applied to various content prior to being processed\/sanitized by KSES. This hook allows developers to customize what types of scripts\/tags should either be allowed in content or stripped.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/prepend_attachment\/\">prepend_attachment<\/a> : applied to the HTML to be prepended by the <code>prepend_attachment<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/protected_title_format\/\">protected_title_format<\/a> : Used to the change or manipulate the post title when the post is password protected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/private_title_format\/\">private_title_format<\/a> : Used to the change or manipulate the post title when its status is private.<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/sanitize_title\/\">sanitize_title<\/a> : applied to a post title by the <code>sanitize_title<\/code> function, after stripping out HTML tags.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/single_post_title\/\">single_post_title<\/a> : applied to the post title when used to create a blog page title by the <code>wp_title<\/code> and <code>single_post_title<\/code> functions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/status_edit_pre\/\">status_edit_pre<\/a> : applied to post status prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_content\/\">the_content<\/a> : applied to the post content retrieved from the database, prior to printing on the screen (also used in some other operations, such as trackbacks).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_content_rss\/\">the_content_rss<\/a> : applied to the post content prior to including in an RSS feed. (Deprecated)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_content_feed\/\">the_content_feed<\/a> : applied to the post content prior to including in an RSS feed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_editor_content\/\">the_editor_content<\/a> : applied to post content before putting it into a rich editor window.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_excerpt\/\">the_excerpt<\/a> : applied to the post excerpt (or post content, if there is no excerpt) retrieved from the database, prior to printing on the screen (also used in some other operations, such as trackbacks).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_excerpt_rss\/\">the_excerpt_rss<\/a> : applied to the post excerpt prior to including in an RSS feed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_password_form\/\">the_password_form<\/a> : applied to the password form for protected posts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_tags\/\">the_tags<\/a> : applied to the tags retrieved from the database, prior to printing on the screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_title\/\">the_title<\/a> : applied to the post title retrieved from the database, prior to printing on the screen (also used in some other operations, such as trackbacks).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_title_rss\/\">the_title_rss<\/a> : applied to the post title before including in an RSS feed (after first filtering with <code>the_title<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/title_edit_pre\/\">title_edit_pre<\/a> : applied to post title prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/type_edit_pre\/\">type_edit_pre<\/a> : applied to post type prior to display for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_dropdown_pages\/\">wp_dropdown_pages<\/a> : applied to the HTML dropdown list of WordPress pages generated by the <code>wp_dropdown_pages<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_list_pages\/\">wp_list_pages<\/a> : applied to the HTML list generated by the <code>wp_list_pages<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_list_pages_excludes\/\">wp_list_pages_excludes<\/a> : applied to the list of excluded pages (an array of page IDs) in the <code>wp_list_pages<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_get_attachment_metadata\/\">wp_get_attachment_metadata<\/a> : applied to the attachment metadata retrieved by the <code>wp_get_attachment_metadata<\/code> function. Filter function arguments: meta data, attachment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_get_attachment_thumb_file\/\">wp_get_attachment_thumb_file<\/a> : applied to the attachment thumbnail file retrieved by the <code>wp_get_attachment_thumb_file<\/code> function. Filter function arguments: thumbnail file, attachment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_get_attachment_thumb_url\/\">wp_get_attachment_thumb_url<\/a> : applied to the attachment thumbnail URL retrieved by the <code>wp_get_attachment_thumb_URL<\/code> function. Filter function arguments: thumbnail URL, attachment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_get_attachment_url\/\">wp_get_attachment_url<\/a> : applied to the attachment URL retrieved by the <code>wp_get_attachment_url<\/code> function. Filter function arguments: URL, attachment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_mime_type_icon\/\">wp_mime_type_icon<\/a> : applied to the MIME type icon for an attachment calculated by the <code>wp_mime_type_icon<\/code> function. Filter function arguments: icon URI calculated, MIME type, post ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_title\/\">wp_title<\/a> : applied to the blog page title before sending to the browser in the <code>wp_title<\/code> function.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Database Writes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Filters in this section are applied to information prior to saving to<br>the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/add_ping\/\">add_ping<\/a> : applied to the new value of the pinged field on a post when a ping is added, prior to saving the new information in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/attachment_fields_to_save\/\">attachment_fields_to_save<\/a> : applied to fields associated with an attachment prior to saving them in the database. Called in the <code>media_upload_form_handler<\/code> function. Filter function arguments: an array of post attributes, an array of attachment fields including the changes submitted from the form.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/attachment_max_dims\/\">attachment_max_dims<\/a> : applied to the maximum image dimensions before reducing an image size. Filter function input (and return value) is either false (if no maximum dimensions have been specified) or a two-item list (width, height).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/category_save_pre\/\">category_save_pre<\/a> : applied to post category comma-separated list prior to saving it in the database (also used for attachments).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_status_pre\/\">comment_status_pre<\/a> : applied to post comment status prior to saving it in the database (also used for attachments).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/content_filtered_save_pre\/\">content_filtered_save_pre<\/a> : applied to filtered post content prior to saving it in the database (also used for attachments).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/content_save_pre\/\">content_save_pre<\/a> : applied to post content prior to saving it in the database (also used for attachments).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/excerpt_save_pre\/\">excerpt_save_pre<\/a> : applied to post excerpt prior to saving it in the database (also used for attachments).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/image_save_pre\/\">image_save_pre<\/a> (deprecated) : use <a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/image_editor_sav_pre\/\"><code>image_editor_save_pre<\/code><\/a> instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/jpeg_quality\/\">jpeg_quality<\/a> (deprecated) : use <a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_editor_set_quality\/\"><code>wp_editor_set_quality<\/code><\/a> or <code>WP_Image_Editor::set_quality()<\/code> instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/name_save_pre\/\">name_save_pre<\/a> (Deprecated): applied to post name prior to saving it in the database (also used for attachments).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/phone_content\/\">phone_content<\/a> : applied to the content of a post submitted by email, before saving.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/ping_status_pre\/\">ping_status_pre<\/a> : applied to post ping status prior to saving it in the database (also used for attachments).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/post_mime_type_pre\/\">post_mime_type_pre<\/a> : applied to the MIME type for an attachment prior to saving it in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/status_save_pre\/\">status_save_pre<\/a> : applied to post status prior to saving it in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/thumbnail_filename\/\">thumbnail_filename<\/a> : applied to the file name for the thumbnail when uploading an image.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/title_save_pre\/\">title_save_pre<\/a> : applied to post title prior to saving it in the database (also used for attachments).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/update_attached_file\/\">update_attached_file<\/a> : applied to the attachment information prior to saving in post metadata in the <code>update_attached_file<\/code> function. Filter function arguments: attachment information, attachment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_create_thumbnail\/\">wp_create_thumbnail<\/a> (deprecated)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_delete_file\/\">wp_delete_file<\/a> : applied to an attachment file name just before deleting.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_generate_attachment_metadata\/\">wp_generate_attachment_metadata<\/a> : applied to the attachment metadata array before saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_save_image_file\/\">wp_save_image_file<\/a> (deprecated) : use <a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_save_image_editor_file\/\"><code>wp_save_image_editor_file<\/code><\/a> instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_thumbnail_creation_size_limit\/\">wp_thumbnail_creation_size_limit<\/a> : applied to the size of the thumbnail when uploading an image. Filter function arguments: max file size, attachment ID, attachment file name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_thumbnail_max_side_length\/\">wp_thumbnail_max_side_length<\/a> : applied to the size of the thumbnail when uploading an image. Filter function arguments: image side max size, attachment ID, attachment file name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_update_attachment_metadata\/\">wp_update_attachment_metadata<\/a> : applied to the attachment metadata just before saving in the <code>wp_update_attachment_metadata<\/code> function. Filter function arguments: meta data, attachment ID.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Comment, Trackback, and Ping Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">See also <a href=\"\/#Author_and_User_Filters\">#Author and User Filters<\/a>, <a href=\"\/#Link_Filters\">#Link Filters<\/a>, <a href=\"\/#Date_and_Time_Filters\">#Date and Time Filters<\/a>, and <a href=\"\/#Administrative_Filters\">#Administrative Filters<\/a> below.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Database Reads<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Filters in this section are applied to information read from the<br>database, prior to displaying on a page or editing screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_excerpt\/\">comment_excerpt<\/a> : applied to the comment excerpt by the <code>comment_excerpt<\/code> function. See also <code>get_comment_excerpt<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_flood_filter\/\">comment_flood_filter<\/a> : applied when someone appears to be flooding your blog with comments. Filter function arguments: already blocked (true\/false, whether a previous filtering plugin has already blocked it; set to true and return true to block this comment in a plugin), time of previous comment, time of current comment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_post_redirect\/\">comment_post_redirect<\/a> : applied to the redirect location after someone adds a comment. Filter function arguments: redirect location, comment info array.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_text\/\">comment_text<\/a> : applied to the comment text before displaying on the screen by the <code>comment_text<\/code> function, and in the admin menus.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_text_rss\/\">comment_text_rss<\/a> : applied to the comment text prior to including in an RSS feed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comments_array\/\">comments_array<\/a> : applied to the array of comments for a post in the <code>comments_template<\/code> function. Filter function arguments: array of comment information structures, post ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comments_number\/\">comments_number<\/a> : applied to the formatted text giving the number of comments generated by the <code>comments_number<\/code> function. See also <code>get_comments_number<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_comment_excerpt\/\">get_comment_excerpt<\/a> : applied to the comment excerpt read from the database by the <code>get_comment_excerpt<\/code> function (which is also called by <code>comment_excerpt<\/code>. See also <code>comment_excerpt<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_comment_ID\/\">get_comment_ID<\/a> : applied to the comment ID read from the global <code>$comments<\/code> variable by the <code>get_comment_ID<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_comment_text\/\">get_comment_text<\/a> : applied to the comment text of the current comment in the <code>get_comment_text<\/code> function, which is also called by the <code>comment_text<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_comment_type\/\">get_comment_type<\/a> : applied to the comment type (&#8220;comment&#8221;, &#8220;trackback&#8221;, or &#8220;pingback&#8221;) by the <code>get_comment_type<\/code> function (which is also called by <code>comment_type<\/code>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_comments_number\/\">get_comments_number<\/a> : applied to the comment count read from the <code>$post<\/code> global variable by the <code>get_comments_number<\/code> function (which is also called by the <code>comments_number<\/code> function; see also <code>comments_number<\/code> filter).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/post_comments_feed_link\/\">post_comments_feed_link<\/a> : applied to the feed URL generated for the comments feed by the <code>comments_rss<\/code> function.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Database Writes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Filters in this section are applied to information prior to saving to<br>the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_save_pre\/\">comment_save_pre<\/a> : applied to the comment data just prior to updating\/editing comment data. Function arguments: comment data array, with indices &#8220;comment_post_ID&#8221;, &#8220;comment_author&#8221;, &#8220;comment_author_email&#8221;, &#8220;comment_author_url&#8221;, &#8220;comment_content&#8221;, &#8220;comment_type&#8221;, and &#8220;user_ID&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_comment_approved\/\">pre_comment_approved<\/a> : applied to the current comment&#8217;s approval status (true\/false) to allow a plugin to override. Return true\/false and set first argument to true\/false to approve\/disapprove the comment, and use global variables such as <code>$comment_ID<\/code> to access information about this comment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_comment_content\/\">pre_comment_content<\/a> : applied to the content of a comment prior to saving the comment in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/preprocess_comment\/\">preprocess_comment<\/a> : applied to the comment data prior to any other processing, when saving a new comment in the database. Function arguments: comment data array, with indices &#8220;comment_post_ID&#8221;, &#8220;comment_author&#8221;, &#8220;comment_author_email&#8221;, &#8220;comment_author_url&#8221;, &#8220;comment_content&#8221;, &#8220;comment_type&#8221;, and &#8220;user_ID&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_insert_post_data\/\">wp_insert_post_data<\/a> : applied to modified and unmodified post data in <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_insert_post\/\" rel=\"function\">wp_insert_post()<\/a>  prior to update or insertion of post into database. Function arguments: modified and extended post array and sanitized post array.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Category and Term Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">See also <a href=\"\/#Administrative_Filters\">#Administrative Filters<\/a><br>below.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Database Reads<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Filters in this section are applied to information read from the<br>database, prior to displaying on a page or editing screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/category_description\/\">category_description<\/a> : applied to the &#8220;description&#8221; field categories by the <code>category_description<\/code> and <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_list_categories\/\"><code>wp_list_categories<\/code><\/a> functions. Filter function arguments: description, category ID when called from <code>category_description<\/code>; description, category information array (all fields from the category table for that particular category) when called from <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_list_categories\/\"><code>wp_list_categories<\/code><\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/category_feed_link\/\">category_feed_link<\/a> : applied to the feed URL generated for the category feed by the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_category_feed_link\/\"><code>get_category_feed_link<\/code><\/a> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/category_link\/\">category_link<\/a> : applied to the URL created for a category by the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_category_link\/\"><code>get_category_link<\/code><\/a> function. Filter function arguments: link URL, category ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_ancestors\/\">get_ancestors<\/a> : applied to the list of ancestor IDs returned by the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_ancestors\/\"><code>get_ancestors<\/code><\/a> function (which is in turn used by many other functions). Filter function arguments: ancestor IDs array, given object ID, given object type.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_categories\/\">get_categories<\/a> : applied to the category list generated by the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_categories\/\"><code>get_categories<\/code><\/a> function (which is in turn used by many other functions). Filter function arguments: category list, <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_categories\/\"><code>get_categories<\/code><\/a> options list.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_category\/\">get_category<\/a> : applied to the category information that the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_category\/\"><code>get_category<\/code><\/a> function looks up, which is basically an array of all the fields in WordPress&#8217;s category table for a particular category ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/list_cats\/\">list_cats<\/a> : called for two different purposes:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>the<br><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_dropdown_categories\/\"><code>wp_dropdown_categories<\/code><\/a><br>function uses it to filter the <code>show_option_all<\/code> and<br><code>show_option_none<\/code> arguments (which are used to put options &#8220;All&#8221;<br>and &#8220;None&#8221; in category drop-down lists). No additional filter<br>function arguments.<\/li>\n\n\n\n<li>the<br><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_list_categories\/\"><code>wp_list_categories<\/code><\/a><br>function applies it to the category names. Filter function<br>arguments: category name, category information list (all fields from<br>the category table for that particular category).<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/list_cats_exclusions\/\">list_cats_exclusions<\/a> : applied to the SQL WHERE statement giving the categories to be excluded by the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_categories\/\"><code>get_categories<\/code><\/a> function. Typically, a plugin would add to this list, in order to exclude certain categories or groups of categories from category lists. Filter function arguments: excluded category WHERE clause, <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_categories\/\"><code>get_categories<\/code><\/a> options list.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/single_cat_title\/\">single_cat_title<\/a> : applied to the category name when used to create a blog page title by the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_title\/\"><code>wp_title<\/code><\/a> and <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/single_cat_title\/\"><code>single_cat_title<\/code><\/a> functions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_category\/\">the_category<\/a> : applied to the list of categories (an HTML list with links) created by the <code>get_the_category_list<\/code> function. Filter function arguments: generated HTML text, list separator being used (empty string means it is a default LI list), <code>parents<\/code> argument to <code>get_the_category_list<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_category_rss\/\">the_category_rss<\/a> : applied to the category list (a list of category XML elements) for a post by the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_the_category_rss\/\"><code>get_the_category_rss<\/code><\/a> function, before including in an RSS feed. Filter function arguments are the list text and the type (&#8220;rdf&#8221; or &#8220;rss&#8221; generally).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_dropdown_cats\/\">wp_dropdown_cats<\/a> : applied to the drop-down category list (a text string containing HTML option elements) generated by the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_dropdown_categories\/\"><code>wp_dropdown_categories<\/code><\/a> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_list_categories\/\">wp_list_categories<\/a> : applied to the category list (an HTML list) generated by the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_list_categories\/\"><code>wp_list_categories<\/code><\/a> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"\/\/developer.wordpress.org\/reference\/functions\/wp_get_object_terms\/\">wp_get_object_terms<\/a> : applied to the list of terms (an array of objects) generated by the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_get_object_terms\/\"><code>wp_get_object_terms<\/code><\/a> function, which is called by a number of category\/term related functions, such as <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_the_terms\/\"><code>get_the_terms<\/code><\/a> and <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_the_category\/\"><code>get_the_category<\/code><\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Database Writes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Filters in this section are applied to information prior to saving to<br>the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_category_description\/\">pre_category_description<\/a> : applied to the category desription prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_update_term_parent\/\">wp_update_term_parent<\/a> : filter term parent before update to term is applied, hook to this filter to see if it will cause a hierarchy loop.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/edit_terms\/\">edit_terms<\/a> : (actually an action, but often used like a filter) hooked in prior to saving taxonomy\/category change in the database<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_category_name\/\">pre_category_name<\/a> : applied to the category name prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_category_nicename\/\">pre_category_nicename<\/a> : applied to the category nice name prior to saving in the database.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Link Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Note: This section contains filters related to links to posts, pages,<br>archives, feeds, etc. For blogroll links, see the <a href=\"\/#Blogroll_Filters\">#Blogroll Filters<\/a> section below.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/attachment_link\/\">attachment_link<\/a> : applied to the calculated attachment permalink by the <code>get_attachment_link<\/code> function. Filter function arguments: link URL, attachment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/author_feed_link\/\">author_feed_link<\/a> : applied to the feed URL generated for the author feed by the <code>get_author_rss_link<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/author_link\/\">author_link<\/a> : applied to the author&#8217;s archive permalink created by the <code>get_author_posts_url<\/code> function. Filter function arguments: link URL, author ID, author&#8217;s &#8220;nice&#8221; name. Note that <code>get_author_posts_url<\/code> is called within functions <code>wp_list_authors<\/code> and <code>the_author_posts_link<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_reply_link\/\">comment_reply_link<\/a> : applied to the link generated for replying to a specific comment by the <code>get_comment_reply_link<\/code> function which is called within function <code>comments_template<\/code>. Filter function arguments: link (string), custom options (array), current comment (object), current post (object).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/day_link\/\">day_link<\/a> : applied to the link URL for a daily archive by the <code>get_day_link<\/code> function. Filter function arguments: URL, year, month number, day number.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/feed_link\/\">feed_link<\/a> : applied to the link URL for a feed by the <code>get_feed_link<\/code> function. Filter function arguments: URL, type of feed (e.g. &#8220;rss2&#8221;, &#8220;atom&#8221;, etc.).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_comment_author_link\/\">get_comment_author_link<\/a> : applied to the HTML generated for the author&#8217;s link on a comment, in the <code>get_comment_author_link<\/code> function (which is also called by <code>comment_author_link<\/code>. Action function arguments: user name<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_comment_author_url_link\/\">get_comment_author_url_link<\/a> : applied to the HTML generated for the author&#8217;s link on a comment, in the <code>get_comment_author_url_link<\/code> function (which is also called by <code>comment_author_link<\/code>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/month_link\/\">month_link<\/a> : applied to the link URL for a monthly archive by the <code>get_month_link<\/code> function. Filter function arguments: URL, year, month number.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/page_link\/\">page_link<\/a> : applied to the calculated page URL by the <code>get_page_link<\/code> function. Filter function arguments: URL, page ID. Note that there is also an internal filter called <code>_get_page_link<\/code> that can be used to filter the URLS of pages that are not designated as the blog&#8217;s home page (same arguments). Note that this only applies to WordPress pages, not posts, custom post types, or attachments.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/post_link\/\">post_link<\/a> : applied to the calculated post permalink by the <code>get_permalink<\/code> function, which is also called by the <code>the_permalink<\/code>, <code>post_permalink<\/code>, <code>previous_post_link<\/code>, and <code>next_post_link<\/code> functions. Filter function arguments: permalink URL, post data list. Note that this only applies to WordPress default posts, and not custom post types (nor pages or attachments).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/post_type_link\/\">post_type_link<\/a> : applied to the calculated custom post type permalink by the <code>get_post_permalink<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_permalink\/\">the_permalink<\/a> : applied to the permalink URL for a post prior to printing by function <code>the_permalink<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/year_link\/\">year_link<\/a> : applied to the link URL for a yearly archive by the <code>get_year_link<\/code> function. Filter function arguments: URL, year.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/tag_link\/\">tag_link<\/a> : applied to the URL created for a tag by the get_tag_link function. Filter function arguments: link URL, tag ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/term_link\/\">term_link<\/a> : applied to the URL created for a term by the get_term_link function. Filter function arguments: term link URL, term object and taxonomy slug.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Date and Time Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">See also <a href=\"\/#Link_Filters\">#Link Filters<\/a> above.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_comment_date\/\">get_comment_date<\/a> : applied to the formatted comment date generated by the <code>get_comment_date<\/code> function (which is also called by <code>comment_date<\/code>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_comment_time\/\">get_comment_time<\/a> : applied to the formatted comment time in the <code>get_comment_time<\/code> function (which is also called by <code>comment_time<\/code>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_the_modified_date\/\">get_the_modified_date<\/a> : applied to the formatted post modification date generated by the <code>get_the_modified_date<\/code> function (which is also called by the <code>the_modified_date<\/code> function).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_the_modified_time\/\">get_the_modified_time<\/a> : applied to the formatted post modification time generated by the <code>get_the_modified_time<\/code> and <code>get_post_modified_time<\/code> functions (which are also called by the <code>the_modified_time<\/code> function).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_the_time\/\">get_the_time<\/a> : applied to the formatted post time generated by the <code>get_the_time<\/code> and <code>get_post_time<\/code> functions (which are also called by the <code>the_time<\/code> function).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_date\/\">the_date<\/a> : applied to the formatted post date generated by the <code>the_date<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_modified_date\/\">the_modified_date<\/a> : applied to the formatted post modification date generated by the <code>the_modified_date<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_modified_time\/\">the_modified_time<\/a> : applied to the formatted post modification time generated by the <code>the_modified_time<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_time\/\">the_time<\/a> : applied to the formatted post time generated by the <code>the_time<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_weekday\/\">the_weekday<\/a> : applied to the post date weekday name generated by the <code>the_weekday<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_weekday_date\/\">the_weekday_date<\/a> : applied to the post date weekday name generated by the <code>the_weekday_date<\/code> function. Function arguments are the weekday name, before text, and after text (before text and after text are added to the weekday name if the current post&#8217;s weekday is different from the previous post&#8217;s weekday).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Author and User Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">See also <a href=\"\/#Link_Filters\">#Link Filters<\/a> and <a href=\"\/#Administrative_Filters\">#Administrative Filters<\/a> sections.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/login_body_class\/\">login_body_class<\/a> : Allows filtering of the body class applied to the login screen in <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/login_header\/\"><code>login_header()<\/code><\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/login_redirect\/\">login_redirect<\/a> : applied to the <code>redirect_to<\/code> post\/get variable during the user login process.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/user_contactmethods\/\">user_contactmethods<\/a> : applied to the contact methods fields on the user profile page. (old page is here: <a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/contactmethods\/\">contactmethods<\/a>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/update_(meta_type)_metadata\/\">update_(meta_type)_metadata<\/a> : applied before a (user) metadata gets updated.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Database Reads<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Filters in this section are applied to information read from the<br>database, prior to displaying on a page or editing screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/author_email\/\">author_email<\/a> : applied to the comment author&#8217;s email address retrieved from the database by the <code>comment_author_email<\/code> function. See also <code>get_comment_author_email<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_author\/\">comment_author<\/a> : applied to the comment author&#8217;s name retrieved from the database by the <code>comment_author<\/code> function. See also <code>get_comment_author<\/code>.<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_author_rss\/\">comment_author_rss<\/a> : applied to the comment author&#8217;s name prior to including in an RSS feed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_email\/\">comment_email<\/a> : applied to the comment author&#8217;s email address retrieved from the database by the <code>comment_author_email_link<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_url\/\">comment_url<\/a> : applied to the comment author&#8217;s URL retrieved from the database by the <code>comment_author_url<\/code> function (see also <code>get_comment_author_url<\/code>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_comment_author\/\">get_comment_author<\/a> : applied to the comment author&#8217;s name retrieved from the database by <code>get_comment_author<\/code>, which is also called by <code>comment_author<\/code>. See also <code>comment_author<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_comment_author_email\/\">get_comment_author_email<\/a> : applied to the comment author&#8217;s email address retrieved from the database by <code>get_comment_author_email<\/code>, which is also called by <code>comment_author_email<\/code>. See also <code>author_email<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_comment_author_IP\/\">get_comment_author_IP<\/a> : applied to the comment author&#8217;s IP address retrieved from the database by the <code>get_comment_author_IP<\/code> function, which is also called by <code>comment_author_IP<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_comment_author_url\/\">get_comment_author_url<\/a> : applied to the comment author&#8217;s URL retrieved from the database by the <code>get_comment_author_url<\/code> function, which is also called by <code>comment_author_url<\/code>. See also <code>comment_url<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/login_errors\/\">login_errors<\/a> : applied to the login error message printed on the login screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/login_headertitle\/\">login_headertitle<\/a> : applied to the title for the login header URL (Powered by WordPress by default) printed on the login screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/login_headerurl\/\">login_headerurl<\/a> : applied to the login header URL (points to wordpress.org by default) printed on the login screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/login_message\/\">login_message<\/a> : applied to the login message printed on the login screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/role_has_cap\/\">role_has_cap<\/a> : applied to a role&#8217;s capabilities list in the <code>WP_Role-&gt;has_cap<\/code> function. Filter function arguments are the capabilities list to be filtered, the capability being questioned, and the role&#8217;s name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/sanitize_user\/\">sanitize_user<\/a> : applied to a user name by the <code>sanitize_user<\/code> function. Filter function arguments: user name (after some cleaning up), raw user name, strict (true or false to use strict ASCII or not).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_author\/\">the_author<\/a> : applied to a post author&#8217;s displayed name by the <code>get_the_author<\/code> function, which is also called by the <code>the_author<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_author_email\/\">the_author_email<\/a> : applied to a post author&#8217;s email address by the <code>the_author_email<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/user_search_columns\/\">user_search_columns<\/a> : applied to the list of columns in the wp_users table to include in the <code>WHERE<\/code> clause inside <a href=\"https:\/\/developer.wordpress.org\/reference\/classes\/wp_user_query\/\">WP_User_Query<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Database Writes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Filters in this section are applied to information prior to saving to<br>the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_comment_author_email\/\">pre_comment_author_email<\/a> : applied to a comment author&#8217;s email address prior to saving the comment in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_comment_author_name\/\">pre_comment_author_name<\/a> : applied to a comment author&#8217;s user name prior to saving the comment in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_comment_author_url\/\">pre_comment_author_url<\/a> : applied to a comment author&#8217;s URL prior to saving the comment in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_comment_user_agent\/\">pre_comment_user_agent<\/a> : applied to the comment author&#8217;s user agent prior to saving the comment in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_comment_user_ip\/\">pre_comment_user_ip<\/a> : applied to the comment author&#8217;s IP address prior to saving the comment in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_user_id\/\">pre_user_id<\/a> : applied to the comment author&#8217;s user ID prior to saving the comment in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_user_description\/\">pre_user_description<\/a> : applied to the user&#8217;s description prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_user_display_name\/\">pre_user_display_name<\/a> : applied to the user&#8217;s displayed name prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_user_email\/\">pre_user_email<\/a> : applied to the user&#8217;s email address prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_user_first_name\/\">pre_user_first_name<\/a> : applied to the user&#8217;s first name prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_user_last_name\/\">pre_user_last_name<\/a> : applied to the user&#8217;s last name prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_user_login\/\">pre_user_login<\/a> : applied to the user&#8217;s login name prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_user_nicename\/\">pre_user_nicename<\/a> : applied to the user&#8217;s &#8220;nice name&#8221; prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_user_nickname\/\">pre_user_nickname<\/a> : applied to the user&#8217;s nickname prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_user_url\/\">pre_user_url<\/a> : applied to the user&#8217;s URL prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/registration_errors\/\">registration_errors<\/a> : applied to the list of registration errors generated while registering a user for a new account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/user_registration_email\/\">user_registration_email<\/a> : applied to the user&#8217;s email address read from the registration page, prior to trying to register the person as a new user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/validate_username\/\">validate_username<\/a> : applied to the validation result on a new user name. Filter function arguments: valid (true\/false), user name being validated.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Blogroll Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Note: This section contains filters related to blogroll links. For<br>filters related to links to posts, pages, categories, etc., see section<br><a href=\"\/#Link_Filters\">#Link Filters<\/a> above.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_bookmarks\/\">get_bookmarks<\/a> : applied to link\/blogroll database query results by the <code>get_bookmarks<\/code> function. Filter function arguments: database query results list, <code>get_bookmarks<\/code> arguments list.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/link_category\/\">link_category<\/a> : applied to the link category by the <code>get_links_list<\/code> and <code>wp_list_bookmarks<\/code> functions (as of WordPress 2.2).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/link_description\/\">link_description<\/a> : applied to the link description by the <code>get_links<\/code> and <code>wp_list_bookmarks<\/code> functions (as of WordPress 2.2).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/link_rating\/\">link_rating<\/a> : applied to the link rating number by the <code>get_linkrating<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/link_title\/\">link_title<\/a> : applied to the link title by the <code>get_links<\/code> and <code>wp_list_bookmarks<\/code> functions (as of WordPress 2.2)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_link_description\/\">pre_link_description<\/a> : applied to the link description prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_link_image\/\">pre_link_image<\/a> : applied to the link image prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_link_name\/\">pre_link_name<\/a> : applied to the link name prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_link_notes\/\">pre_link_notes<\/a> : applied to the link notes prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_link_rel\/\">pre_link_rel<\/a> : applied to the link relation information prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_link_rss\/\">pre_link_rss<\/a> : applied to the link RSS URL prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_link_target\/\">pre_link_target<\/a> : applied to the link target information prior to saving in the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_link_url\/\">pre_link_url<\/a> : applied to the link URL prior to saving in the database.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Blog Information and Option Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/all_options\/\">all_options<\/a> : applied to the option list retrieved from the database by the <code>get_alloptions<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/all_plugins\/\">all_plugins<\/a> : applied to the list of plugins retrieved for display in the plugins list table.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/bloginfo\/\">bloginfo<\/a> : applied to the blog option information retrieved from the database by the <code>bloginfo<\/code> function, after first retrieving the information with the <code>get_bloginfo<\/code> function. A second argument <code>$show<\/code> gives the name of the bloginfo option that was requested. Note that <code>bloginfo(\"url\")<\/code>, <code>bloginfo(\"directory\")<\/code> and <code>bloginfo(\"home\")<\/code> do <em>not<\/em> use this filtering function (see <code>bloginfo_url<\/code>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/bloginfo_rss\/\">bloginfo_rss<\/a> : applied to the blog option information by function <code>get_bloginfo_rss<\/code> (which is also called from <code>bloginfo_rss<\/code>), after first retrieving the information with the <code>get_bloginfo<\/code> function, stripping out HTML tags, and converting characters appropriately. A second argument <code>$show<\/code> gives the name of the bloginfo option that was requested.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/bloginfo_url\/\">bloginfo_url<\/a> : applied to the the output of <code>bloginfo(\"url\")<\/code>, <code>bloginfo(\"directory\")<\/code> and <code>bloginfo(\"home\")<\/code> before returning the information.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/loginout\/\">loginout<\/a> : applied to the HTML link for logging in and out (generally placed in the sidebar) generated by the <code>wp_loginout<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/lostpassword_url\/\">lostpassword_url<\/a> : applied to the URL that allows users to reset their passwords.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/option_(option_name)\/\">option_(option name)<\/a> : applied to the option value retrieved from the database by the <code>get_option<\/code> function, after unserializing (which decodes array-based options). To use this filter, you will need to add filters for specific options names, such as &#8220;option_foo&#8221; to filter the output of <code>get_option(\"foo\")<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_get_space_used\/\">pre_get_space_used<\/a>: applied to the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_space_used\/\"><code>get_space_used()<\/code><\/a> function to provide an alternative way of displaying storage space used. Returning false from this filter will revert to default display behavior (used <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_upload_dir\/\" rel=\"function\">wp_upload_dir()<\/a>  directory space in megabytes).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_option_(option_name)\/\">pre_option_(option name)<\/a> : applied to the option value retrieved from the database by the <code>get_alloptions<\/code> function, after unserializing (which decodes array-based options). To use this filter, you will need to add filters for specific options names, such as &#8220;pre_option_foo&#8221; to filter the option &#8220;foo&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_update_option_(option_name)\/\">pre_update_option_(option name)<\/a> : applied the option value before being saving to the database to allow overriding the value to be stored. To use this filter, you will need to add filters for specific options names, such as &#8220;pre_update_option_foo&#8221; to filter the option &#8220;foo&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/register\/\">register<\/a> : applied to the sidebar link created for the user to register (if allowed) or visit the admin panels (if already logged in) by the <code>wp_register<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/upload_dir\/\">upload_dir<\/a> : applied to the directory to be used for uploads calculated by the <code>wp_upload_dir<\/code> function. Filter function argument is an array with components &#8220;dir&#8221; (the upload directory path), &#8220;url&#8221; (the URL of the upload directory), and &#8220;error&#8221; (which you can set to true if you want to generate an error).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/upload_mimes\/\">upload_mimes<\/a> : allows a filter function to return a list of MIME types for uploads, if there is no MIME list input to the <code>wp_check_filetype<\/code> function. Filter function argument is an associated list of MIME types whose component names are file extensions (separated by vertical bars) and values are the corresponding MIME types.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">General Text Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/attribute_escape\/\">attribute_escape<\/a> : applied to post text and other content by the <code>attribute_escape<\/code> function, which is called in many places in WordPress to change certain characters into HTML attributes before sending to the browser.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/js_escape\/\">js_escape<\/a> : applied to JavaScript code before sending to the browser in the <code>js_escape<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/sanitize_key\/\">sanitize_key<\/a> : applied to key before using it for your settings, field, or other needs, generated by <code>sanitize_key<\/code> function<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Administrative Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The filters in this section are related to the administration screens of<br>WordPress, including content editing screens.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/admin_user_info_links\/\">admin_user_info_links<\/a> : applied to the user profile and info links in the WordPress admin quick menu.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/autosave_interval\/\">autosave_interval<\/a> : applied to the interval for auto-saving posts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/bulk_actions\/\">bulk_actions<\/a> : applied to an array of bulk items in admin bulk action dropdowns.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/bulk_post_updated_messages\/\">bulk_post_updated_messages<\/a> : applied to an array of bulk action updated messages.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/cat_rows\/\">cat_rows<\/a> : applied to the category rows HTML generated for managing categories in the admin menus.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_edit_pre\/\">comment_edit_pre<\/a> : applied to comment content prior to display in the editing screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_edit_redirect\/\">comment_edit_redirect<\/a> : applied to the redirect location after someone edits a comment in the admin menus. Filter function arguments: redirect location, comment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_moderation_subject\/\">comment_moderation_subject<\/a> : applied to the mail subject before sending email notifying the administrator of the need to moderate a new comment. Filter function arguments: mail subject, comment ID..<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_moderation_text\/\">comment_moderation_text<\/a> : applied to the body of the mail message before sending email notifying the administrator of the need to moderate a new comment. Filter function arguments: mail body text, comment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_notification_headers\/\">comment_notification_headers<\/a> : applied to the mail headers before sending email notifying the post author of a new comment. Filter function arguments: mail header text, comment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_notification_subject\/\">comment_notification_subject<\/a> : applied to the mail subject before sending email notifying the post author of a new comment. Filter function arguments: mail subject, comment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_notification_text\/\">comment_notification_text<\/a> : applied to the body of the mail message before sending email notifying the post author of a new comment. Filter function arguments: mail body text, comment ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comment_row_actions\/\">comment_row_actions<\/a> : applied to the list of action links under each comment row (like Reply, Quick Edit, Edit).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/cron_request\/\">cron_request<\/a> : Allows filtering of the URL, key and arguments passed to <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_remote_post\/\">wp_remote_post()<\/a> in <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/spawn_cron\/\">spawn_cron()<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/cron_schedules\/\">cron_schedules<\/a> : applied to an empty array to allow a plugin to generate cron schedules in the <code>wp_get_schedules<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/custom_menu_order\/\">custom_menu_order<\/a> : used to activate the &#8216;menu_order&#8217; filter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/default_content\/\">default_content<\/a> : applied to the default post content prior to opening the editor for a new post.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/default_excerpt\/\">default_excerpt<\/a> : applied to the default post excerpt prior to opening the editor for a new post.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/default_title\/\">default_title<\/a> : applied to the default post title prior to opening the editor for a new post.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/editable_slug\/\">editable_slug<\/a> : applied to the post, page, tag or category slug by the <code>get_sample_permalink<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/format_to_edit\/\">format_to_edit<\/a> : applied to post content, excerpt, title, and password by the <code>format_to_edit<\/code> function, which is called by the admin menus to set up a post for editing. Also applied to when editing comments in the admin menus.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/format_to_post\/\">format_to_post<\/a> : applied to post content by the <code>format_to_post<\/code> function, which is not used in WordPress by default.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/manage_edit-post_type_columns\/\">manage_edit-${post_type}_columns<\/a> : applied to the list of columns to print on the manage posts screen for a custom post type. Filter function argument\/return value is an associative array where the element key is the name of the column, and the value is the header text for that column. See also action <a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/manage_post_type_posts_custom_column\/\"><code>manage_${post_type}_posts_custom_column<\/code><\/a>, which puts the column information into the edit screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/manage_link-manager_columns\/\">manage_link-manager_columns<\/a> : was <code>manage_link_columns<\/code> until wordpress 2.7. applied to the list of columns to print on the blogroll management screen. Filter function argument\/return value is an associative list where the element key is the name of the column, and the value is the header text for that column. See also action <a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/manage_posts_custom_column\/\"><code>manage_link_custom_column<\/code><\/a>, which puts the column information into the edit screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/manage_posts_columns\/\">manage_posts_columns<\/a> : applied to the list of columns to print on the manage posts screen. Filter function argument\/return value is an associative array where the element key is the name of the column, and the value is the header text for that column. See also action <a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/manage_posts_custom_column\/\"><code>manage_posts_custom_column<\/code><\/a>, which puts the column information into the edit screen. (see <a href=\"http:\/\/scompt.com\/archives\/2007\/10\/20\/adding-custom-columns-to-the-wordpress-manage-posts-screen\">Scompt&#8217;s tutorial<\/a> for examples and use.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/manage_pages_columns\/\">manage_pages_columns<\/a> : applied to the list of columns to print on the manage pages screen. Filter function argument\/return value is an associative array where the element key is the name of the column, and the value is the header text for that column. See also action <code>manage_pages_custom_column<\/code>, which puts the column information into the edit screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/manage_users_columns\/\">manage_users_columns<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/manage_users_custom_column\/\">manage_users_custom_column<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/manage_users_sortable_columns\/\">manage_users_sortable_columns<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/media_row_actions\/\">media_row_actions<\/a> : applied to the list of action links under each file in the Media Library (like View, Edit).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/menu_order\/\">menu_order<\/a> : applied to the array for the admin menu order. Must be activated with the &#8216;custom_menu_order&#8217; filter before.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/nonce_life\/\">nonce_life<\/a> : applied to the lifespan of a <a href=\"\/Glossary#Nonce\">nonce<\/a> to generate or verify the nonce. Can be used to generate nonces which expire earlier. The value returned by the filter should be in seconds.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/nonce_user_logged_out\/\">nonce_user_logged_out<\/a> : applied to the current user ID used to generate or verify a <a href=\"\/Glossary#Nonce\">nonce<\/a> when the user is logged out.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/plugin_row_meta\/\">plugin_row_meta<\/a> : add additional links below each plugin on the plugins page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/postmeta_form_limit\/\">postmeta_form_limit<\/a> : applied to the number of post-meta information items shown on the post edit screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/post_row_actions\/\">post_row_actions<\/a> : applied to the list of action links (like Quick Edit, Edit, View, Preview) under each post in the Posts &gt; All Posts section.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/post_updated_messages\/\">post_updated_messages<\/a> : applied to the array storing user-visible administrative messages when working with posts, pages and custom post types. This filter is used to change the text of said messages, not to trigger them. See &#8220;customizing the messages&#8221; in the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/register_post_type#Example\/\">register_post_type<\/a> documentation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/pre_upload_error\/\">pre_upload_error<\/a> : applied to allow a plugin to create an XMLRPC error for uploading files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/preview_page_link\/\">preview_page_link<\/a> : applied to the link on the page editing screen that shows the page preview at the bottom of the screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/preview_post_link\/\">preview_post_link<\/a> : applied to the link on the post editing screen that shows the post preview at the bottom of the screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/richedit_pre\/\">richedit_pre<\/a> : applied to post content by the <code>wp_richedit_pre<\/code> function, before displaying in the rich text editor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/schedule_event\/\">schedule_event<\/a> : applied to each recurring and single event as it is added to the cron schedule.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/set-screen-option\/\">set-screen-option<\/a> : Filter a screen option value before it is set.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/show_password_fields\/\">show_password_fields<\/a> : applied to the true\/false variable that controls whether the user is presented with the opportunity to change their password on the user profile screen (true means to show password changing fields; false means don&#8217;t).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/terms_to_edit\/\">terms_to_edit<\/a> : applied to the CSV of terms (for each taxonomy) that is used to show which terms are attached to the post.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_editor\/\">the_editor<\/a> : applied to the HTML DIV created to house the rich text editor, prior to printing it on the screen. Filter function argument\/return value is a string.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/user_can_richedit\/\">user_can_richedit<\/a> : applied to the calculation of whether the user&#8217;s browser has rich editing capabilities, and whether the user wants to use the rich editor, in the <code>user_can_richedit<\/code> function. Filter function argument and return value is true\/false if the current user can\/cannot use the rich editor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/user_has_cap\/\">user_has_cap<\/a> : applied to a user&#8217;s capabilities list in the <code>WP_User-&gt;has_cap<\/code> function (which is called by the <code>current_user_can<\/code> function). Filter function arguments are the capabilities list to be filtered, the capability being questioned, and the argument list (which has things such as the post ID if the capability is to edit posts, etc.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_handle_upload_prefilter\/\">wp_handle_upload_prefilter<\/a> : applied to the upload information when uploading a file. Filter function argument: array which represents a single element of $_FILES.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_handle_upload\/\">wp_handle_upload<\/a> : applied to the upload information when uploading a file. Filter function argument: array with elements &#8220;file&#8221; (file name), &#8220;url&#8221;, &#8220;type&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_revisions_to_keep\/\">wp_revisions_to_keep<\/a> : alters how many revisions are kept for a given post. Filter function arguments: number representing desired revisions saved (default is unlimited revisions), the post object.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_terms_checklist_args\/\">wp_terms_checklist_args<\/a> : applied to arguments of the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_terms_checklist\/\" rel=\"function\">wp_terms_checklist()<\/a>  function. Filter function argument: array of checklist arguments, post ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_upload_tabs\/\">wp_upload_tabs<\/a> : applied to the list of custom tabs to display on the upload management admin screen. Use action <code>upload_files_(tab)<\/code> to display a page for your custom tab.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/media_upload_tabs\/\">media_upload_tabs<\/a> : applied to the list of custom tabs to display on the upload management admin screen. Use action <code>upload_files_(tab)<\/code> to display a page for your custom tab.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/plugin_action_links_(plugin_file_name)\/\">plugin_action_links_(plugin file name)<\/a> : applied to the list of links to display on the plugins page (beside the activate\/deactivate links).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/views_edit-post\/\">views_edit-post<\/a> : applied to the list posts eg All (30) | Published (22) | Draft (5) | Pending (2) | Trash (1)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Rich Text Editor Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These filters modify the configuration of the rich text editor, TinyMCE.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/mce_spellchecker_languages\/\">mce_spellchecker_languages<\/a> : applied to the language selection available in the spell checker.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/mce_buttons,_mce_buttons_2,_mce_buttons_3,_mce_buttons_4\/\">mce_buttons, mce_buttons_2, mce_buttons_3, mce_buttons_4<\/a> : applied to the rows of buttons for the rich editor toolbar (each is an array of button names).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/mce_css\/\">mce_css<\/a> : applied to the CSS file URL for the rich text editor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/mce_external_plugins\/\">mce_external_plugins<\/a> : applied to the array of external plugins to be loaded by the rich text editor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/mce_external_languages\/\">mce_external_languages<\/a> : applied to the array of language files loaded by external plugins, allowing them to use the standard translation method (see tinymce\/langs\/wp-langs.php for reference).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/tiny_mce_before_init\/\">tiny_mce_before_init<\/a> : applied to the whole init array for the editor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Template Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This section contains links related to themes, templates, and style<br>files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/locale_stylesheet_uri\/\">locale_stylesheet_uri<\/a> : applied to the locale-specific stylesheet URI returned by the <code>get_locale_stylesheet_uri<\/code> function. Filter function arguments: URI, stylesheet directory URI.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/stylesheet\/\">stylesheet<\/a> : applied to the stylesheet returned by the <code>get_stylesheet<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/stylesheet_directory\/\">stylesheet_directory<\/a> : applied to the stylesheet directory returned by the <code>get_stylesheet_directory<\/code> function. Filter function arguments: stylesheet directory, stylesheet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/stylesheet_directory_uri\/\">stylesheet_directory_uri<\/a> : applied to the stylesheet directory URI returned by the <code>get_stylesheet_directory_uri<\/code> function. Filter function arguments: stylesheet directory URI, stylesheet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/stylesheet_uri\/\">stylesheet_uri<\/a> : applied to the stylesheet URI returned by the <code>get_stylesheet_uri<\/code> function. Filter function arguments: stylesheet URI, stylesheet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/template\/\">template<\/a> : applied to the template returned by the <code>get_template<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/template_directory\/\">template_directory<\/a> : applied to the template directory returned by the <code>get_template_directory<\/code> function. Filter function arguments: template directory, template.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/template_directory_uri\/\">template_directory_uri<\/a> : applied to the template directory URI returned by the <code>get_template_directory_uri<\/code> function. Filter function arguments: template directory URI, template.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/theme_root\/\">theme_root<\/a> : applied to the theme root directory (normally wp-content\/themes) returned by the <code>get_theme_root<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/theme_root_uri\/\">theme_root_uri<\/a> : applied to the theme root directory URI returned by the <code>get_theme_root_uri<\/code> function. Filter function arguments: URI, site URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also replace individual template files from your theme, by using<br>the following filter hooks. See also the<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/template_redirect\/\"><code>template_redirect<\/code><\/a><br>action hook. Each of these filters takes as input the path to the<br>corresponding template file in the current theme. A plugin can modify<br>the file to be used by returning a new path to a template file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/404_template\/\">404_template<\/a> :<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/archive_template\/\">archive_template<\/a> : You can use this for example to enforce a specific template for a custom post type archive. This way you can keep all the code in a plugin.<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/attachment_template\/\">attachment_template<\/a> :<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/author_template\/\">author_template<\/a> :<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/category_template\/\">category_template<\/a> :<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comments_popup_template\/\">comments_popup_template<\/a> :<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comments_template\/\">comments_template<\/a> : The &#8220;comments_template&#8221; filter can be used to load a custom template form a plugin which replace the themes default comment template.<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/date_template\/\">date_template<\/a> :<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/home_template\/\">home_template<\/a> :<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/page_template\/\">page_template<\/a> :<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/paged_template\/\">paged_template<\/a> :<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/search_template\/\">search_template<\/a> :<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/single_template\/\">single_template<\/a> : You can use this for example to enforce a specific template for a custom post type. This way you can keep all the code in a plugin.<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/shortcut_link\/\">shortcut_link<\/a> : applied to the &#8220;Press This&#8221; bookmarklet link.<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/template_include\/\">template_include<\/a> :<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_nav_menu_args\/\">wp_nav_menu_args<\/a> : applied to the arguments of the <code>wp_nav_menu<\/code> function.<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_nav_menu_items\/\">wp_nav_menu_items<\/a> : Filter the HTML list content for navigation menus.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Kubrick Filters<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">These filters were present in the pre-3.0 default theme kubrick.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/kubrick_header_color\/\">kubrick_header_color<\/a> : applied to the color for the header of the kubrick theme.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/kubrick_header_display\/\">kubrick_header_display<\/a> : applied to the display option for the header of the kubrick theme.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/kubrick_header_image\/\">kubrick_header_image<\/a> : applied to the header image file for the kubrick theme.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Registration &amp; Login Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/authenticate\/\">authenticate<\/a> : allows basic authentication to be performed on login based on username and password.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/registration_errors\/\">registration_errors<\/a> : applied to the list of registration errors generated while registering a user for a new account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/user_registration_email\/\">user_registration_email<\/a> : applied to the user&#8217;s email address read from the registration page, prior to trying to register the person as a new user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/validate_username\/\">validate_username<\/a> : applied to the validation result on a new user name. Filter function arguments: valid (true\/false), user name being validated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_authenticate_user\/\">wp_authenticate_user<\/a> : applied when a user attempted to log in, after WordPress validates username and password, but before validation errors are checked.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Redirect\/Rewrite Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These advanced filters relate to WordPress\u2019s handling of rewrite rules.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/allowed_redirect_hosts\/\">allowed_redirect_hosts<\/a> : applied to the list of host names deemed safe for redirection. wp-login.php uses this to defend against a dangerous &#8216;redirect_to&#8217; request parameter<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/author_rewrite_rules\/\">author_rewrite_rules<\/a> : applied to the author-related rewrite rules after they are generated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/category_rewrite_rules\/\">category_rewrite_rules<\/a> : applied to the category-related rewrite rules after they are generated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/comments_rewrite_rules\/\">comments_rewrite_rules<\/a> : applied to the comment-related rewrite rules after they are generated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/date_rewrite_rules\/\">date_rewrite_rules<\/a> : applied to the date-related rewrite rules after they are generated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/mod_rewrite_rules\/\">mod_rewrite_rules<\/a> : applied to the list of rewrite rules given to the user to put into their .htaccess file when they change their permalink structure. (Note: replaces deprecated filter <code>rewrite_rules<\/code>.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/page_rewrite_rules\/\">page_rewrite_rules<\/a> : applied to the page-related rewrite rules after they are generated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/post_rewrite_rules\/\">post_rewrite_rules<\/a> : applied to the post-related rewrite rules after they are generated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/redirect_canonical\/\">redirect_canonical<\/a> : Can be used to cancel a &#8220;canonical&#8221; URL redirect. Accepts 2 parameters: <code>$redirect_url<\/code>, <code>$requested_url<\/code>. To cancel the redirect return <strong><code>FALSE<\/code><\/strong>, to allow the redirect return <code>$redirect_url<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/rewrite_rules_array\/\">rewrite_rules_array<\/a> : applied to the entire rewrite rules array after it is generated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/root_rewrite_rules\/\">root_rewrite_rules<\/a> : applied to the root-level rewrite rules after they are generated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/search_rewrite_rules\/\">search_rewrite_rules<\/a> : applied to the search-related rewrite rules after they are generated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_redirect\/\">wp_redirect<\/a> : applied to a redirect URL by the default <code>wp_redirect<\/code> function. Filter function arguments: URL, HTTP status code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_redirect_status\/\">wp_redirect_status<\/a> : applied to the HTTP status code when redirecting by the default <code>wp_redirect<\/code> function. Filter function arguments: HTTP status code, URL.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/developer.wordpress.org\/reference\/classes\/wp_query\/\" rel=\"class\">WP_Query<\/a> Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These are filters run by the <a href=\"https:\/\/developer.wordpress.org\/reference\/classes\/wp_query\/\">WP_Query object<\/a> in the course of building<br>and executing a query to retrieve posts. See also <a href=\"\/#Advanced_WordPress_Filters\">#Advanced WordPress Filters<\/a> for queries relating<br>to users, meta values, and more generic queries.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/found_posts\/\">found_posts<\/a> : applied to the list of posts, just after querying from the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/found_posts_query\/\">found_posts_query<\/a> : after the list of posts to display is queried from the database, WordPress selects rows in the query results. This filter allows you to do something other than <code>SELECT FOUND_ROWS()<\/code> at that step.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/post_limits\/\">post_limits<\/a> : applied to the <code>LIMIT<\/code> clause of the query that returns the post array.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/posts_clauses\/\">posts_clauses<\/a> : applied to the entire SQL query, divided into a keyed array for each clause type, that returns the post array. Can be easier to work with than <code>posts_request<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/posts_distinct\/\">posts_distinct<\/a> : allows a plugin to add a <code>DISTINCTROW<\/code> clause to the query that returns the post array.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/posts_fields\/\">posts_fields<\/a> : applied to the field list for the query that returns the post array.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/posts_groupby\/\">posts_groupby<\/a> : applied to the <code>GROUP BY<\/code> clause of the query that returns the post array (normally empty).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/posts_join\/\">posts_join<\/a> : applied to the <code>JOIN<\/code> clause of the query that returns the post array. This is typically used to add a table to the <code>JOIN<\/code>, in combination with the <code>posts_where<\/code> filter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/posts_join_paged\/\">posts_join_paged<\/a> : applied to the <code>JOIN<\/code> clause of the query that returns the post array, after the paging is calculated (though paging does not affect the JOIN, so this is actually equivalent to <code>posts_join<\/code>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/posts_orderby\/\">posts_orderby<\/a> : applied to the <code>ORDER BY<\/code> clause of the query that returns the post array.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/posts_request\/\">posts_request<\/a> : applied to the entire SQL query that returns the post array, just prior to running the query.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/posts_results\/\">posts_results<\/a> : allows you to manipulate the resulting array returned from the query.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/posts_search\/\">posts_search<\/a> : applied to the search SQL that is used in the <code>WHERE<\/code> clause of <a href=\"https:\/\/developer.wordpress.org\/reference\/classes\/wp_query\/\" rel=\"class\">WP_Query<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/posts_where\/\">posts_where<\/a> : applied to the <code>WHERE<\/code> clause of the query that returns the post array.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/posts_where_paged\/\">posts_where_paged<\/a> : applied to the <code>WHERE<\/code> clause of the query that returns the post array, after the paging is calculated (though paging does not affect the WHERE, so this is actually equivalent to <code>posts_where<\/code>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/the_posts\/\">the_posts<\/a> : applied to the list of posts queried from the database after minimal processing for permissions and draft status on single-post pages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Media Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This section contains media filters that are used to integrated<br>different types of media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/editor_max_image_size\/\">editor_max_image_size<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/image_downsize\/\">image_downsize<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_image_tag_class\/\">get_image_tag_class<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_image_tag\/\">get_image_tag<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/image_resize_dimensions\/\">image_resize_dimensions<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/intermediate_image_sizes\/\">intermediate_image_sizes<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/icon_dir\/\">icon_dir<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_get_attachment_image_attributes\/\">wp_get_attachment_image_attributes<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/img_caption_shortcode\/\">img_caption_shortcode<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/post_gallery\/\">post_gallery<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/use_default_gallery_style\/\">use_default_gallery_style<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/gallery_style\/\">gallery_style<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/(adjacent)_image_link\/\">(adjacent)_image_link<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/embed_defaults\/\">embed_defaults<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/load_default_embeds\/\">load_default_embeds<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/embed_oembed_html\/\">embed_oembed_html<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/embed_googlevideo\/\">embed_googlevideo<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/oembed_result\/\">oembed_result<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/upload_size_limit\/\">upload_size_limit<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_image_editors\/\">wp_image_editors<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/plupload_default_settings\/\">plupload_default_settings<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/plupload_default_params\/\">plupload_default_params<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/image_size_names_choose\/\">image_size_names_choose<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_prepare_attachment_for_js\/\">wp_prepare_attachment_for_js<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/media_upload_tabs\/\">media_upload_tabs<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/disable_captions\/\">disable_captions<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/media_view_settings\/\">media_view_settings<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/media_view_strings\/\">media_view_strings<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_handle_upload_prefilter\/\">wp_handle_upload_prefilter<\/a> :<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Advanced WordPress Filters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This section contains advanced filters related to internationalization,<br>miscellaneous queries, and other fundamental WordPress functions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/create_user_query\/\">create_user_query<\/a> : applied to the query used to save a new user&#8217;s information to the database, just prior to running the query.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_editable_authors\/\">get_editable_authors<\/a> : applied to the list of post authors that the current user is authorized to edit in the <code>get_editable_authors<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_next_post_join\/\">get_next_post_join<\/a> : in function <code>get_next_post<\/code> (which finds the post after the currently-displayed post), applied to the SQL JOIN clause (which normally joins to the category table if user is viewing a category archive). Filter function arguments: JOIN clause, stay in same category (true\/false), list of excluded categories.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_next_post_sort\/\">get_next_post_sort<\/a> : in function <code>get_next_post<\/code> (which finds the post after the currently-displayed post), applied to the SQL ORDER BY clause (which normally orders by post date in ascending order with a limit of 1 post). Filter function arguments: ORDER BY clause.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_next_post_where\/\">get_next_post_where<\/a> : in function <code>get_next_post<\/code> (which finds the post after the currently-displayed post), applied to the SQL WHERE clause (which normally looks for the next dated published post). Filter function arguments: WHERE clause, stay in same category (true\/false), list of excluded categories.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_previous_post_join\/\">get_previous_post_join<\/a> : in function <code>get_previous_post<\/code> (which finds the post before the currently-displayed post), applied to the SQL JOIN clause (which normally joins to the category table if user is viewing a category archive). Filter function arguments: join clause, stay in same category (true\/false), list of excluded categories.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_previous_post_sort\/\">get_previous_post_sort<\/a> : in function <code>get_previous_post<\/code> (which finds the post before the currently-displayed post), applied to the SQL ORDER BY clause (which normally orders by post date in descending order with a limit of 1 post). Filter function arguments: ORDER BY clause.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_previous_post_where\/\">get_previous_post_where<\/a> : in function <code>get_previous_post<\/code> (which finds the post before the currently-displayed post), applied to the SQL WHERE clause (which normally looks for the previous dated published post). Filter function arguments: WHERE clause, stay in same category (true\/false), list of excluded categories.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/gettext\/\">gettext<\/a> : applied to the translated text by the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/translation\/\"><code>translation()<\/code><\/a> function (which is called by functions like the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/_2\/\"><code>__()<\/code><\/a> and <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/_e\/\"><code>_e()<\/code><\/a> internationalization functions ). Filter function arguments: translated text, untranslated text and the text domain. Gets applied even if internationalization is not in effect or if the text domain has not been loaded.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/override_load_textdomain\/\">override_load_textdomain<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_meta_sql\/\">get_meta_sql<\/a> : in function <code>WP_Meta_Query::get_sql<\/code> (which generates SQL clauses to be appended to a main query for advanced meta queries.), applied to the SQL JOIN and WHERE clause generated by the advanced meta query. Filter function arguments: array( compact( &#8216;join&#8217;, &#8216;where&#8217; ), $this-&gt;queries, $type, $primary_table, $primary_id_column, $context )<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_others_drafts\/\">get_others_drafts<\/a> : applied to the query that selects the other users&#8217; drafts for display in the admin menus.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/get_users_drafts\/\">get_users_drafts<\/a> : applied to the query that selects the users&#8217; drafts for display in the admin menus.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/locale\/\">locale<\/a> : applied to the locale by the <code>get_locale<\/code> function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/query\/\">query<\/a> : applied to all queries (at least all queries run after plugins are loaded).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/query_string\/\">query_string<\/a> : deprecated &#8211; use <code>query_vars<\/code> or <code>request<\/code> instead.<br><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/query_vars\/\">query_vars<\/a> : applied to the list of public WordPress query variables before the SQL query is formed. Useful for removing extra permalink information the plugin has dealt with in some other manner.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/request\/\">request<\/a> : like <code>query_vars<\/code>, but applied after &#8220;extra&#8221; and private query variables have been added.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/excerpt_length\/\">excerpt_length<\/a> : Defines the length of a single-post excerpt.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/excerpt_more\/\">excerpt_more<\/a> : Defines the more string at the end of the excerpt.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/post_edit_form_tag\/\">post_edit_form_tag<\/a> : Allows you to append code to the form tag in the default post\/page editor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/update_user_query\/\">update_user_query<\/a> : applied to the update query used to update user information, prior to running the query.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/uploading_iframe_src\/\">uploading_iframe_src<\/a> (removed since WP 2.5): applied to the HTML src tag for the uploading iframe on the post and page editing screens.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/xmlrpc_methods\/\">xmlrpc_methods<\/a> : applied to list of defined XMLRPC methods for the XMLRPC server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_mail_from\/\">wp_mail_from<\/a> : applied before any mail is sent by the wp_mail function. Supplied value is the calculated from address which is wordpress at the current hostname (set by $_SERVER[&#8216;SERVER_NAME&#8217;]). The filter should return an email address or name\/email combo in the form &#8220;user@example.com&#8221; or &#8220;Name \\&lt;user@example.com&gt;&#8221; (without the quotes!).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_mail_from_name\/\">wp_mail_from_name<\/a> : applied before any mail is sent by the wp_mail function. The filter should return a name string to be used as the email from name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/update_(meta_type)_metadata\/\">update_(meta_type)_metadata<\/a> : applied before a metadata gets updated. For example if a user metadata gets updated the hook would be &#8216;update_user_metadata&#8217;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Widgets<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This section contains filters added by widgets present in WordPress<br>core.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/dynamic_sidebar_params\/\">dynamic_sidebar_params<\/a> : applied to the arguments passed to the widgets_init function in the WordPress widgets.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/widget_archives_dropdown_args\/\">widget_archives_dropdown_args<\/a> : applied to the arguments passed to the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_get_archives\/\"><code>wp_get_archives()<\/code><\/a> function in the WordPress Archives widget.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/widget_categories_args\/\">widget_categories_args<\/a> : applied to the arguments passed to the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_list_categories\/\"><code>wp_list_categories()<\/code><\/a> function in the WordPress Categories widget.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/widget_links_args\/\">widget_links_args<\/a> : applied to the arguments passed to the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_list_bookmarks\/\"><code>wp_list_bookmarks()<\/code><\/a> function in the WordPress Links widget.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/widget_nav_menu_args\/\">widget_nav_menu_args<\/a> : applied to the arguments passed to the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_nav_menu\/\"><code>wp_nav_menu()<\/code><\/a> function in the WordPress Custom Menu widget.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/widget_pages_args\/\">widget_pages_args<\/a> : applied to the arguments passed to the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_list_pages\/\"><code>wp_list_pages()<\/code><\/a> function in the WordPress Pages widget.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/widget_tag_cloud_args\/\">widget_tag_cloud_args<\/a> : applied to the arguments passed to the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_tag_cloud\/\"><code>wp_tag_cloud()<\/code><\/a> function in the WordPress Pages widget.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/widget_text\/\">widget_text<\/a> : applied to the widget text of the WordPress Text widget. May also apply to some third party widgets as well.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/widget_title\/\">widget_title<\/a> : applied to the widget title of any user editable WordPress Widget. May also apply to some third party widgets as well.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Admin Bar<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This section contains filters added by the Admin Bar added in WordPress<br>3.1.0.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/wp_admin_bar_class\/\">wp_admin_bar_class<\/a> : allows changing the default &#8216;<a href=\"https:\/\/developer.wordpress.org\/reference\/classes\/wp_admin_bar\/\" rel=\"class\">WP_Admin_Bar<\/a>&#8217; class in the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/_wp_admin_bar_init\/\"><code>_wp_admin_bar_init()<\/code><\/a> function in .<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Further Reading<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/\">Hooks Database<\/a> &#8211; documentation for all hooks in the official WordPress Code<br>Reference.<\/li>\n<\/ul>\n","protected":false},"author":7511363,"featured_media":0,"parent":152114,"menu_order":0,"template":"","meta":{"_crdt_document":"","footnotes":""},"class_list":["post-141491","apis-handbook","type-apis-handbook","status-publish","hentry","type-handbook"],"revision_note":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/apis-handbook\/141491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/apis-handbook"}],"about":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/types\/apis-handbook"}],"author":[{"embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/users\/7511363"}],"version-history":[{"count":6,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/apis-handbook\/141491\/revisions"}],"predecessor-version":[{"id":158974,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/apis-handbook\/141491\/revisions\/158974"}],"up":[{"embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/apis-handbook\/152114"}],"wp:attachment":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/media?parent=141491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}