filtrod 4.2.0
logout_redirect
Opis — z kodu źródłowego
Filters the log out redirect URL.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$redirect_to | string | The redirect destination URL. |
$requested_redirect_to | string | The requested redirect destination URL passed as a parameter. |
$user | \WP_User | The WP_User object for the user that's logging out. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'logout_redirect', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'logout_redirect', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii