Automattic\WooCommerce\Blocks\Assets

Api::get_asset_url()protectedWC 1.0

Retrieve the url to an asset for this plugin.

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

Хуков нет.

Возвращает

Строку.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_asset_url( $relative_path );
$relative_path(строка)
An optional relative path appended to the returned url.
По умолчанию: ''

Код Api::get_asset_url() WC 8.7.0

protected function get_asset_url( $relative_path = '' ) {
	return $this->package->get_url( $relative_path );
}