filtrod 3.5.0
nonce_user_logged_out
Opis — z kodu źródłowego
Filters whether the user who generated the nonce is logged out.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$uid | int | ID of the nonce-owning user. |
$action | string | int | The nonce action, or -1 if none was provided. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'nonce_user_logged_out', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'nonce_user_logged_out', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii