WP HOOKS
filtrod 6.1.0

site_status_good_response_time_threshold

Args 1Plik wp-admin/includes/class-wp-site-health.phpDokumentacja WP ↗

Opis — z kodu źródłowego

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

The default is based on https://web.dev/time-to-first-byte/.

Parametry

ParametrTypOpis
$thresholdintThreshold in milliseconds. Default 600.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'site_status_good_response_time_threshold', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii