wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



http_request_host_is_external › Hooks de Filtros WordPress

Desde3.6.0
Obsoleton/a
apply_filters( 'http_request_host_is_external', false, $host, $url )
Parâmetros: (3)
  • (bool) $external Whether HTTP request is external or not.
    Required: Yes
  • (string) $host Host name of the requested URL.
    Required: Yes
  • (string) $url Requested URL.
    Required: Yes
Definido em:
Codex:

Check if HTTP request is external or not.

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





Fonte

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