wordpress / latest / classes / wp_site_health / get_good_response_time_threshold.html

WP_Site_Health::get_good_response_time_threshold(): int

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Gets the threshold below which a response time is considered good.

Return

int Threshold in milliseconds.

Source

File: wp-admin/includes/class-wp-site-health.php. View all references

private function get_good_response_time_threshold() {
	/**
	 * Filters the threshold below which a response time is considered good.
	 *
	 * The default is based on https://web.dev/time-to-first-byte/.
	 *
	 * @param int $threshold Threshold in milliseconds. Default 600.
	 *
	 * @since 6.1.0
	 */
	return (int) apply_filters( 'site_status_good_response_time_threshold', 600 );
}

Hooks

Uses

Uses Description

Changelog

Version Description
6.1.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_site_health/get_good_response_time_threshold