WP HOOKS
filtrod 5.6.1

wp_is_site_protected_by_basic_auth

Args 2Plik wp-includes/load.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether a site is protected by HTTP Basic Auth.

Parametry

ParametrTypOpis
$is_protectedboolWhether the site is protected by Basic Auth.
$contextstringThe context to check for protection. One of 'login', 'admin', or 'front'.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_is_site_protected_by_basic_auth', 'twoja_funkcja', 10, 2 );

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

Popularne w tej kategorii