filtrod 4.7.4
send_auth_cookies
Opis — z kodu źródłowego
Allows preventing auth cookies from actually being sent to the client.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$send | bool | Whether to send auth cookies to the client. Default true. |
$expire | int | The time the login grace period expires as a UNIX timestamp. Default is 12 hours past the cookie's expiration time. Zero when clearing cookies. |
$expiration | int | The time when the logged-in authentication cookie expires as a UNIX timestamp. Default is 14 days from now. Zero when clearing cookies. |
$user_id | int | User ID. Zero when clearing cookies. |
$scheme | string | Authentication scheme. Values include 'auth' or 'secure_auth'. Empty string when clearing cookies. |
$token | string | User'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
}
// 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