WP HOOKS
filtrod 3.1.0

secure_auth_cookie

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

Opis — z kodu źródłowego

Filters whether the auth cookie should only be sent over HTTPS.

Parametry

ParametrTypOpis
$secureboolWhether the cookie should only be sent over HTTPS.
$user_idintUser ID.

Wywołanie

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

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

Popularne w tej kategorii