WP HOOKS
filtrod 4.7.4

send_auth_cookies

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

Opis — z kodu źródłowego

Allows preventing auth cookies from actually being sent to the client.

Parametry

ParametrTypOpis
$sendboolWhether to send auth cookies to the client. Default true.
$expireintThe time the login grace period expires as a UNIX timestamp. Default is 12 hours past the cookie's expiration time. Zero when clearing cookies.
$expirationintThe time when the logged-in authentication cookie expires as a UNIX timestamp. Default is 14 days from now. Zero when clearing cookies.
$user_idintUser ID. Zero when clearing cookies.
$schemestringAuthentication scheme. Values include 'auth' or 'secure_auth'. Empty string when clearing cookies.
$tokenstringUser's session token to use for this cookie. Empty string when clearing cookies.

Wywołanie

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

function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
	// Twój kod
}

Popularne w tej kategorii