Automattic\WooCommerce\Internal\Utilities
URL::is_relative
Indicates if the URL or filepath was relative.
Метод класса: URL{}
Хуков нет.
Возвращает
bool. True if relative, else false.
Использование
$URL = new URL(); $URL->is_relative(): bool;
Код URL::is_relative() URL::is relative WC 11.3.0
public function is_relative(): bool {
return ! $this->is_absolute;
}