wpseek.com
A WordPress-centric search engine for devs and theme authors



http_allowed_safe_ports › WordPress Filter Hooks

Since5.9.0
Deprecatedn/a
apply_filters( 'http_allowed_safe_ports', array( 80, 443, 8080 )
Parameters: (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
Defined at:
Codex:

Controls the list of ports considered safe in HTTP API.

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





Source

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