site_status_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/.
Usage
add_filter( 'site_status_good_response_time_threshold', 'wp_kama_site_status_good_response_time_threshold_filter' ); /** * Function for `site_status_good_response_time_threshold` filter-hook. * * @param int $threshold Threshold in milliseconds. * * @return int */ function wp_kama_site_status_good_response_time_threshold_filter( $threshold ){ // filter... return $threshold; }
- $threshold(int)
- Threshold in milliseconds.
Default: 600
Changelog
Since 6.1.0 | Introduced. |
Where the hook is called
site_status_good_response_time_threshold
wp-admin/includes/class-wp-site-health.php 3501
return (int) apply_filters( 'site_status_good_response_time_threshold', 600 );