Automattic\WooCommerce\Internal\Utilities

URL::get_pathpublicWC 1.0

Outputs the path. Especially useful if it was a a regular filepath that was passed in originally.

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

Хуков нет.

Возвращает

Строку.

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

$URL = new URL();
$URL->get_path( ?string $path_override ): string;
?string $path_override
.
По умолчанию: null

Код URL::get_path() WC 10.4.3

public function get_path( ?string $path_override = null ): string {
	return ( $this->components['drive'] ? $this->components['drive'] . ':' : '' ) . ( $path_override ?? $this->components['path'] );
}