filtrod 2.3.0
allowed_redirect_hosts
Opis — z kodu źródłowego
Filters the list of allowed hosts to redirect to.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$hosts | string[] | An array of allowed host names. |
$host | string | The host name of the redirect destination; empty string if not set. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'allowed_redirect_hosts', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'allowed_redirect_hosts', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii