filtrod 3.1.0
secure_signon_cookie
Opis — z kodu źródłowego
Filters whether to use a secure sign-on cookie.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$secure_cookie | bool | Whether to use a secure sign-on cookie. |
$credentials | array | { 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
}
// 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