Automattic\WooCommerce\Internal\Utilities

URL::__construct()publicWC 1.0

Creates and processes the provided URL (or filepath).

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$URL = new URL();
$URL->__construct( $url );
$url(строка) (обязательный)
The URL (or filepath).

Код URL::__construct() WC 8.7.0

public function __construct( string $url ) {
	$this->url = $url;
	$this->preprocess();
	$this->process_path();
}