akcjaod 2.7.0
auth_cookie_expired
Opis — z kodu źródłowego
Fires once an authentication cookie has expired.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$cookie_elements | string[] | { Authentication cookie components. None of the components should be assumed to be valid as they come directly from a client-provided cookie value. @type string $username User's username. @type string $expiration The time the cookie expires as a UNIX timestamp. @type string $token User's session token used. @type string $hmac The security hash for the cookie. @type string $scheme The cookie scheme to use. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'auth_cookie_expired', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'auth_cookie_expired', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii