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



http_request_host_is_external › WordPress Filter Hooks

Seit3.6.0
Veraltetn/v
apply_filters( 'http_request_host_is_external', false, $host, $url )
Parameter: (3)
  • (bool) $external Whether HTTP request is external or not.
    Erforderlich: Ja
  • (string) $host Host name of the requested URL.
    Erforderlich: Ja
  • (string) $url Requested URL.
    Erforderlich: Ja
Definiert in:
Codex:

Check if HTTP request is external or not.

Allows to change and allow external requests for the HTTP request.





Quellcode

if ( ! apply_filters( 'http_request_host_is_external', false, $host, $url ) ) {