apply_filters( ‘block_local_requests’, bool $block )

In this article

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

return apply_filters( 'block_local_requests', false );

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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