block_local_requests

Advertisement

Summery Summery

Filters whether to block local HTTP API requests.

Syntax Syntax

apply_filters( 'block_local_requests', bool $block )

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.

Source Source

File: wp-includes/class-http.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.