filtrod 3.1.0
secure_auth_cookie
Opis — z kodu źródłowego
Filters whether the auth cookie should only be sent over HTTPS.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$secure | bool | Whether the cookie should only be sent over HTTPS. |
$user_id | int | User 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
}
// 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