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)
  • () allowed_ports Array of integers for valid ports. Default allowed ports are 80, 443, and 8080.
    Wymagane: Tak
  • () host Host name of the requested URL.
    Wymagane: Tak
  • () 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 );