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

YoastSEO_Vendor\Psr\Http\Message

UriInterface::getPort() public Yoast 1.0

Retrieve the port component of the URI.

If a port is present, and it is non-standard for the current scheme, this method MUST return it as an integer. If the port is the standard port used with the current scheme, this method SHOULD return null.

If no port is present, and no scheme is present, this method MUST return a null value.

If no port is present, but a scheme is present, this method MAY return the standard port for that scheme, but SHOULD return null.

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

Хуков нет.

Возвращает

null/Число. The URI port.

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

$UriInterface = new UriInterface();
$UriInterface->getPort();

Код UriInterface::getPort() Yoast 15.4

<?php
public function getPort();