Description
Filters whether to block local HTTP API requests. A local request is one to `localhost` or to the same host as the site itself.
Occurrences
Filename | Line Number |
---|---|
wp-includes/class-wp-http.php | 900 |
Parameters
Type | Name | Description |
---|---|---|
bool | $block | Whether to block local requests. Default false. |
PHP Doc
/**
* Filters whether to block local HTTP API requests.
*
* A local request is one to `localhost` or to the same host as the site itself.
*
* @since 2.8.0
*
* @param bool $block Whether to block local requests. Default false.
*/