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



http_allowed_safe_ports › Filtr WordPress Hooks

Od5.9.0
Przestarzałyn/a
apply_filters( 'http_allowed_safe_ports', array( 80, 443, 8080 )
Parametry: (3)
  • (int[]) $allowed_ports Array of integers for valid ports.
    Wymagane: Tak
  • (string) $host Host name of the requested URL.
    Wymagane: Tak
  • (string) $url Requested URL.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Controls the list of ports considered safe in HTTP API.

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





Źródło

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