Title: 5.4.0 | Developer.WordPress.org

---

# New and updated in 5.4.0

Functions

Hooks

Classes

Methods

 * function[rest_parse_hex_color()](https://developer.wordpress.org/reference/functions/rest_parse_hex_color/)
 * Parses a 3 or 6 digit hex color (with #).
 * Used by [1 function](https://developer.wordpress.org/reference/functions/rest_parse_hex_color/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/rest_parse_hex_color/#uses)
   | Source: [wp-includes/rest-api.php:1358](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/rest-api.php#L1358-L1365)
 * hook[wp_nav_menu_item_custom_fields_customize_template](https://developer.wordpress.org/reference/hooks/wp_nav_menu_item_custom_fields_customize_template/)
 * Fires at the end of the form field template for nav menu items in the customizer.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_nav_menu_item_custom_fields_customize_template/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_nav_menu_item_custom_fields_customize_template/#uses)
   | Source: [wp-includes/customize/class-wp-customize-nav-menu-item-control.php:162](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php#L162-L162)
 * function[is_favicon()](https://developer.wordpress.org/reference/functions/is_favicon/)
 * Is the query for the favicon.ico file?
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/is_favicon/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/is_favicon/#uses)
   | Source: [wp-includes/query.php:672](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/query.php#L672-L681)
 * hook[rest_{$this->post_type}_item_schema](https://developer.wordpress.org/reference/hooks/rest_this-post_type_item_schema/)
 * Filters the post’s schema.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/rest_this-post_type_item_schema/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/rest_this-post_type_item_schema/#uses)
   | Source: [wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2822](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php#L2822-L2822)
 * function[apply_shortcodes()](https://developer.wordpress.org/reference/functions/apply_shortcodes/)
 * Searches content for shortcodes and filter shortcodes through their hooks.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/apply_shortcodes/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/apply_shortcodes/#uses)
   | Source: [wp-includes/shortcodes.php:223](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/shortcodes.php#L223-L225)
 * function[do_favicon()](https://developer.wordpress.org/reference/functions/do_favicon/)
 * Displays the favicon.ico file content.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/do_favicon/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/do_favicon/#uses)
   | Source: [wp-includes/functions.php:1742](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/functions.php#L1742-L1752)
 * hook[do_faviconico](https://developer.wordpress.org/reference/hooks/do_faviconico/)
 * Fires when serving the favicon.ico file.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/do_faviconico/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/do_faviconico/#uses)
   | Source: [wp-includes/functions.php:1748](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/functions.php#L1748-L1748)
 * hook[user_request_action_email_headers](https://developer.wordpress.org/reference/hooks/user_request_action_email_headers/)
 * Filters the headers of the email sent when an account action is attempted.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/user_request_action_email_headers/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/user_request_action_email_headers/#uses)
   | Source: [wp-includes/user.php:5006](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/user.php#L5006-L5006)
 * hook[wp_privacy_additional_user_profile_data](https://developer.wordpress.org/reference/hooks/wp_privacy_additional_user_profile_data/)
 * Filters the user’s profile data for the privacy exporter.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_privacy_additional_user_profile_data/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_privacy_additional_user_profile_data/#uses)
   | Source: [wp-includes/user.php:4099](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/user.php#L4099-L4099)
 * hook[user_request_confirmed_email_headers](https://developer.wordpress.org/reference/hooks/user_request_confirmed_email_headers/)
 * Filters the headers of the user request confirmation email.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/user_request_confirmed_email_headers/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/user_request_confirmed_email_headers/#uses)
   | Source: [wp-includes/user.php:4440](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/user.php#L4440-L4440)
 * hook[user_erasure_complete_email_headers](https://developer.wordpress.org/reference/hooks/user_erasure_complete_email_headers/)
 * Filters the headers of the data erasure fulfillment notification.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/user_erasure_complete_email_headers/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/user_erasure_complete_email_headers/#uses)
   | Source: [wp-includes/user.php:4679](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/user.php#L4679-L4684)
 * hook[add_trashed_suffix_to_trashed_posts](https://developer.wordpress.org/reference/hooks/add_trashed_suffix_to_trashed_posts/)
 * Filters whether or not to add a `__trashed` suffix to the name of trashed posts
   that match the name of the updated post.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/add_trashed_suffix_to_trashed_posts/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/add_trashed_suffix_to_trashed_posts/#uses)
   | Source: [wp-includes/post.php:4801](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/post.php#L4801-L4801)
 * hook[do_favicon](https://developer.wordpress.org/reference/hooks/do_favicon/)
 * Fired when the template loader determines a favicon.ico request.
 * Used by [0 functions](https://developer.wordpress.org/reference/hooks/do_favicon/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/do_favicon/#uses)
   | Source: [wp-includes/template-loader.php:55](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/template-loader.php#L55-L55)
 * method[WP_Query::is_favicon()](https://developer.wordpress.org/reference/classes/wp_query/is_favicon/)
 * Determines whether the query is for the favicon.ico file.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_query/is_favicon/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_query/is_favicon/#uses)
   | Source: [wp-includes/class-wp-query.php:4633](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-query.php#L4633-L4635)
 * function[rest_parse_embed_param()](https://developer.wordpress.org/reference/functions/rest_parse_embed_param/)
 * Parses the “_embed” parameter into the list of resources to embed.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/rest_parse_embed_param/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/rest_parse_embed_param/#uses)
   | Source: [wp-includes/rest-api.php:3017](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/rest-api.php#L3017-L3029)
 * function[wp_dashboard_site_health()](https://developer.wordpress.org/reference/functions/wp_dashboard_site_health/)
 * Displays the Site Health Status widget.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_dashboard_site_health/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/wp_dashboard_site_health/#uses)
   | Source: [wp-admin/includes/dashboard.php:1973](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/dashboard.php#L1973-L2056)
 * hook[wp_privacy_personal_data_email_headers](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_headers/)
 * Filters the headers of the email sent with a personal data export file.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_headers/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_email_headers/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:738](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/privacy-tools.php#L738-L738)
 * method[Plugin_Upgrader::active_before()](https://developer.wordpress.org/reference/classes/plugin_upgrader/active_before/)
 * Turns on maintenance mode before attempting to background update an active plugin.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/plugin_upgrader/active_before/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/plugin_upgrader/active_before/#uses)
   | Source: [wp-admin/includes/class-plugin-upgrader.php:597](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-plugin-upgrader.php#L597-L620)
 * method[Plugin_Upgrader::active_after()](https://developer.wordpress.org/reference/classes/plugin_upgrader/active_after/)
 * Turns off maintenance mode after upgrading an active plugin.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/plugin_upgrader/active_after/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/plugin_upgrader/active_after/#uses)
   | Source: [wp-admin/includes/class-plugin-upgrader.php:633](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-plugin-upgrader.php#L633-L656)
 * method[WP_Site_Health::maybe_create_scheduled_event()](https://developer.wordpress.org/reference/classes/wp_site_health/maybe_create_scheduled_event/)
 * Creates a weekly cron event, if one does not already exist.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_site_health/maybe_create_scheduled_event/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_site_health/maybe_create_scheduled_event/#uses)
   | Source: [wp-admin/includes/class-wp-site-health.php:3342](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-site-health.php#L3342-L3346)
 * method[WP_Site_Health::wp_cron_scheduled_check()](https://developer.wordpress.org/reference/classes/wp_site_health/wp_cron_scheduled_check/)
 * Runs the scheduled event to check and update the latest site health status for
   the website.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_site_health/wp_cron_scheduled_check/#used-by)
   | Uses [14 functions](https://developer.wordpress.org/reference/classes/wp_site_health/wp_cron_scheduled_check/#uses)
   | Source: [wp-admin/includes/class-wp-site-health.php:3353](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-site-health.php#L3353-L3457)
 * method[WP_Site_Health::get_instance()](https://developer.wordpress.org/reference/classes/wp_site_health/get_instance/)
 * Returns an instance of the WP_Site_Health class, or create one if none exist 
   yet.
 * Used by [7 functions](https://developer.wordpress.org/reference/classes/wp_site_health/get_instance/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_site_health/get_instance/#uses)
   | Source: [wp-admin/includes/class-wp-site-health.php:79](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-site-health.php#L79-L85)
 * method[WP_Site_Health::perform_test()](https://developer.wordpress.org/reference/classes/wp_site_health/perform_test/)
 * Runs a Site Health test directly.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_site_health/perform_test/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_site_health/perform_test/#uses)
   | Source: [wp-admin/includes/class-wp-site-health.php:172](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-site-health.php#L172-L195)
 * hook[wp_nav_menu_item_custom_fields](https://developer.wordpress.org/reference/hooks/wp_nav_menu_item_custom_fields/)
 * Fires just before the move buttons of a nav menu item in the menu editor.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_nav_menu_item_custom_fields/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_nav_menu_item_custom_fields/#uses)
   | Source: [wp-admin/includes/class-walker-nav-menu-edit.php:280](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-walker-nav-menu-edit.php#L280-L280)
 * function[wp_get_original_image_path()](https://developer.wordpress.org/reference/functions/wp_get_original_image_path/)
 * Retrieves the path to an uploaded image file.
 * Used by [7 functions](https://developer.wordpress.org/reference/functions/wp_get_original_image_path/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_get_original_image_path/#uses)
   | Source: [wp-includes/post.php:8460](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/post.php#L8460-L8483)
 * function[wp_user_personal_data_exporter()](https://developer.wordpress.org/reference/functions/wp_user_personal_data_exporter/)
 * Finds and exports personal data associated with an email address from the user
   and user_meta table.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_user_personal_data_exporter/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/wp_user_personal_data_exporter/#uses)
   | Source: [wp-includes/user.php:4020](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/user.php#L4020-L4206)
 * function[wp_privacy_generate_personal_data_export_group_html()](https://developer.wordpress.org/reference/functions/wp_privacy_generate_personal_data_export_group_html/)
 * Generate a single group for the personal data export report.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_privacy_generate_personal_data_export_group_html/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/wp_privacy_generate_personal_data_export_group_html/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:252](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/privacy-tools.php#L252-L301)
 * hook[wp_privacy_personal_data_export_file_created](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_export_file_created/)
 * Fires right after all personal data has been written to the export file.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_export_file_created/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_privacy_personal_data_export_file_created/#uses)
   | Source: [wp-admin/includes/privacy-tools.php:563](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/privacy-tools.php#L563-L563)
 * function[rest_validate_value_from_schema()](https://developer.wordpress.org/reference/functions/rest_validate_value_from_schema/)
 * Validate a value based on a schema.
 * Used by [19 functions](https://developer.wordpress.org/reference/functions/rest_validate_value_from_schema/#used-by)
   | Uses [21 functions](https://developer.wordpress.org/reference/functions/rest_validate_value_from_schema/#uses)
   | Source: [wp-includes/rest-api.php:2177](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/rest-api.php#L2177-L2310)
 * method[WP_REST_Posts_Controller::get_collection_params()](https://developer.wordpress.org/reference/classes/wp_rest_posts_controller/get_collection_params/)
 * Retrieves the query params for the posts collection.
 * Used by [6 functions](https://developer.wordpress.org/reference/classes/wp_rest_posts_controller/get_collection_params/#used-by)
   | Uses [8 functions](https://developer.wordpress.org/reference/classes/wp_rest_posts_controller/get_collection_params/#uses)
   | Source: [wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2978](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php#L2978-L3184)

1 [2](https://developer.wordpress.org/reference/since/5.4.0/page/2/?output_format=md)

 [Next Page](https://developer.wordpress.org/reference/since/5.4.0/page/2/?output_format=md)