WP_Site_Health::get_good_response_time_threshold
Gets the threshold below which a response time is considered good.
Method of the class: WP_Site_Health{}
Hooks from the method
Returns
Int. Threshold in milliseconds.
Usage
// private - for code of main (parent) class only $result = $this->get_good_response_time_threshold();
Changelog
| Since 6.1.0 | Introduced. |
WP_Site_Health::get_good_response_time_threshold() WP Site Health::get good response time threshold code WP 7.0
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/.
*
* @since 6.1.0
*
* @param int $threshold Threshold in milliseconds. Default 600.
*/
return (int) apply_filters( 'site_status_good_response_time_threshold', 600 );
}