filtrod 3.6.0
http_request_host_is_external
Opis — z kodu źródłowego
Checks if HTTP request is external or not.
Allows to change and allow external requests for the HTTP request.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$external | bool | Whether HTTP request is external or not. |
$host | string | Host name of the requested URL. |
$url | string | Requested URL. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'http_request_host_is_external', '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( 'http_request_host_is_external', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}