akcjaod 2.7.0
auth_cookie_malformed
Opis — z kodu źródłowego
Fires if an authentication cookie is malformed.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$cookie | string | Malformed auth cookie. |
$scheme | string | Authentication scheme. Values include 'auth', 'secure_auth', or 'logged_in'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'auth_cookie_malformed', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'auth_cookie_malformed', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii