wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



http_request_host_is_external › Filtr WordPress Hooks

Od3.6.0
Przestarzałyn/a
apply_filters( 'http_request_host_is_external', false, $host, $url )
Parametry: (3)
  • (bool) $external Whether HTTP request is external or not.
    Wymagane: Tak
  • (string) $host Host name of the requested URL.
    Wymagane: Tak
  • (string) $url Requested URL.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Check if HTTP request is external or not.

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





Źródło

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