filtrod 3.4.0
allowed_http_origin
Opis — z kodu źródłowego
Changes the allowed HTTP origin result.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$origin | string | Origin URL if allowed, empty string if not. |
$origin_arg | string | Original origin string passed into is_allowed_http_origin function. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'allowed_http_origin', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'allowed_http_origin', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}