Controls the list of ports considered safe in HTTP API.
Allows to change and allow external requests for the HTTP request.
$allowed_portsint[]
$hoststring
$urlstring
$allowed_ports = apply_filters( 'http_allowed_safe_ports', array( 80, 443, 8080 ), $host, $url );
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/http_allowed_safe_ports