apply_filters( 'http_allowed_safe_ports', array $allowed_ports, string $host, string $url )

Controls the list of ports considered safe in HTTP API.


Description

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


Parameters

$allowed_ports

Array of integers for valid ports.

$host

Host name of the requested URL.

$url

Requested URL.


Source

File: wp-includes/http.php

View on GitHub



Changelog

Changelog
Version Description
5.9.0 Introduced.