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

YoastSEO_Vendor\GuzzleHttp\Psr7

Uri::isAbsolute() public Yoast 1.0

Whether the URI is absolute, i.e. it has a scheme.

An instance of UriInterface can either be an absolute URI or a relative reference. This method returns true if it is the former. An absolute URI has a scheme. A relative reference is used to express a URI relative to another URI, the base URI. Relative references can be divided into several forms:

  • network-path references, e.g. '//example.com/path'
  • absolute-path references, e.g. '/path'
  • relative-path references, e.g. 'subpath'

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

Хуков нет.

Возвращает

true/false.

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

$result = Uri::isAbsolute( \YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri );
$uri(Uriчислоerface) (обязательный)

Заметки

Код Uri::isAbsolute() Yoast 15.7

<?php
public static function isAbsolute(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri)
{
    return $uri->getScheme() !== '';
}