WP HOOKS
filtrod 3.1.0

secure_signon_cookie

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

Opis — z kodu źródłowego

Filters whether to use a secure sign-on cookie.

Parametry

ParametrTypOpis
$secure_cookieboolWhether to use a secure sign-on cookie.
$credentialsarray{ Array of entered sign-on data. @type string $user_login Username. @type string $user_password Password entered. @type bool $remember Whether to 'remember' the user. Increases the time that the cookie will be kept. Default false. }

Wywołanie

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

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

Popularne w tej kategorii