apply_filters( 'block_local_requests', bool $block )

Filters whether to block local HTTP API requests.


Description

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


Parameters

$block

Whether to block local requests. Default false.


Source

File: wp-includes/class-wp-http.php

View on GitHub



Changelog

Changelog
Version Description
2.8.0 Introduced.