WP_Site_Health::get_good_response_time_threshold()privateWP 6.1.0

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

Метод класса: WP_Site_Health{}

Хуки из метода

Возвращает

int. Threshold in milliseconds.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_good_response_time_threshold();

Список изменений

С версии 6.1.0 Введена.

Код WP_Site_Health::get_good_response_time_threshold() WP 6.1.1

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 );
}