WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

YoastSEO_Vendor\Psr\Http\Message

UriInterface::withPort() public Yoast 1.0

Return an instance with the specified port.

This method MUST retain the state of the current instance, and return an instance that contains the specified port.

Implementations MUST raise an exception for ports outside the established TCP and UDP port ranges.

A null value provided for the port is equivalent to removing the port information.

{} Это метод класса: UriInterface{}

Хуков нет.

Возвращает

static. A new instance with the specified port.

Использование

$UriInterface = new UriInterface();
$UriInterface->withPort( $port );
$port(null/число) (обязательный)
The port to use with the new instance; a null value
php removes the port information.

Код UriInterface::withPort() Yoast 15.3

<?php
public function withPort($port);