Automattic\WooCommerce\Blocks\Assets

Api::get_asset_url()protectedWC 1.0

Retrieve the url to an asset for this plugin.

Method of the class: Api{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_asset_url( $relative_path );
$relative_path(string)
An optional relative path appended to the returned url.
Default: ''

Api::get_asset_url() code WC 8.7.0

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