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



http_allowed_safe_ports › WordPress Filter Hooks

Seit5.9.0
Veraltetn/v
apply_filters( 'http_allowed_safe_ports', array( 80, 443, 8080 )
Parameter: (3)
  • (int[]) $allowed_ports Array of integers for valid ports.
    Erforderlich: Ja
  • (string) $host Host name of the requested URL.
    Erforderlich: Ja
  • (string) $url Requested URL.
    Erforderlich: Ja
Definiert in:
Codex:

Controls the list of ports considered safe in HTTP API.

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





Quellcode

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