wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



http_allowed_safe_ports › WordPress Filter Hooks

Da5.9.0
Deprecaton/a
apply_filters( 'http_allowed_safe_ports', array( 80, 443, 8080 )
Parametri: (3)
  • (int[]) $allowed_ports Array of integers for valid ports.
    Richiesto:
  • (string) $host Host name of the requested URL.
    Richiesto:
  • (string) $url Requested URL.
    Richiesto:
Definito a:
Codex:

Controls the list of ports considered safe in HTTP API.

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





Sorgenti

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