WP HOOKS
filtrod 2.8.0

block_local_requests

Args 1Plik wp-includes/class-wp-http.phpDokumentacja WP ↗

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

ParametrTypOpis
$blockboolWhether 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
}

Popularne w tej kategorii