WordPress at a glance
filter is not described

block_local_requests filter-hook . WP 2.8.0

Filters whether to block local HTTP API requests.

A local request is one to localhost or to the same host as the site itself.


add_filter( 'block_local_requests', 'filter_function_name_5658' );
function filter_function_name_5658( $block ){
	// filter...

	return $block;
Whether to block local requests.
Default: false

Список изменений

С версии 2.8.0 Введена.

Где вызывается хук

wp-includes/class-http.php 888
return apply_filters( 'block_local_requests', false );

Где используется хук в ядре WP

Использование не найдено.