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



http_allowed_safe_ports › Hooks de Filtros WordPress

Desde5.9.0
Obsoleton/a
apply_filters( 'http_allowed_safe_ports', array( 80, 443, 8080 )
Parâmetros: (3)
  • (int[]) $allowed_ports Array of integers for valid ports.
    Required: Yes
  • (string) $host Host name of the requested URL.
    Required: Yes
  • (string) $url Requested URL.
    Required: Yes
Definido em:
Codex:

Controls the list of ports considered safe in HTTP API.

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





Fonte

$allowed_ports = apply_filters( 'http_allowed_safe_ports', array( 80, 443, 8080 ), $host, $url );