Automattic\WooCommerce\Blocks\Assets
Api::get_asset_url()
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() Api::get asset url code WC 9.8.1
protected function get_asset_url( $relative_path = '' ) { return $this->package->get_url( $relative_path ); }