Automattic\WooCommerce\Internal\Utilities

URL::is_relativepublicWC 1.0

Indicates if the URL or filepath was relative.

Method of the class: URL{}

No Hooks.

Returns

bool. True if relative, else false.

Usage

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

URL::is_relative() code WC 11.1.2

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