filtrod 2.5.0
auth_cookie
Opis — z kodu źródłowego
Filters the authentication cookie.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$cookie | string | Authentication cookie. |
$user_id | int | User ID. |
$expiration | int | The time the cookie expires as a UNIX timestamp. |
$scheme | string | Cookie scheme used. Accepts 'auth', 'secure_auth', or 'logged_in'. |
$token | string | User's session token used. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'auth_cookie', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'auth_cookie', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}Popularne w tej kategorii