apply_filters( 'block_local_requests', bool $block )

Filters whether to block local HTTP API requests.


Description Description

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


Parameters Parameters

$block

(bool) Whether to block local requests. Default false.


Top ↑

Source Source

File: wp-includes/class-http.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.