filtrod 2.8.0
block_local_requests
Opis — z kodu źródłowego
Filters whether to block local HTTP API requests.
A local request is one to localhost or to the same host as the site itself.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$block | bool | Whether to block local requests. Default false. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'block_local_requests', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'block_local_requests', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii