Automattic\WooCommerce\Internal\Utilities

URL::is_relative()publicWC 1.0

Indicates if the URL or filepath was relative.

Метод класса: URL{}

Хуков нет.

Возвращает

true|false. True if relative, else false.

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

$URL = new URL();
$URL->is_relative(): bool;

Код URL::is_relative() WC 8.7.0

public function is_relative(): bool {
	return ! $this->is_absolute;
}