filtrod 6.1.0
site_status_good_response_time_threshold
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
| Parametr | Typ | Opis |
|---|---|---|
$threshold | int | Threshold 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
}
// 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