Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



block_local_requests ›

Seit2.8.0
Veraltetn/v
apply_filters( 'block_local_requests', false )
Parameter:
  • (bool) $block Whether to block local requests. Default false.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

return apply_filters( 'block_local_requests', false );