wpseek.com
A WordPress-centric search engine for devs and theme authors



block_local_requests › WordPress Filter Hooks

Since2.8.0
Deprecatedn/a
apply_filters( 'block_local_requests', false )
Parameters:
  • (bool) $block Whether to block local requests. Default false.
    Required: Yes
Defined at:
Codex:

Filters whether to block local HTTP API requests.

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





Source

return apply_filters( 'block_local_requests', false );