On this page
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
$blockbool-
Whether to block local requests. Default false.
Source
File: wp-includes/class-wp-http.php. View all references
return apply_filters( 'block_local_requests', false );
Related
Used By
| Used By | Description |
|---|---|
| WP_Http::block_request() wp-includes/class-wp-http.php | Determines whether an HTTP API request to the given URL should be blocked. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/block_local_requests