Automattic\WooCommerce\Internal\AddressProvider

AbstractAutomatticAddressProvider::get_asset_urlpublic staticWC 1.0

Return asset URL, copied from WC_Frontend_Scripts::get_asset_url.

Method of the class: AbstractAutomatticAddressProvider{}

Hooks from the method

Returns

String.

Usage

$result = AbstractAutomatticAddressProvider::get_asset_url( $path );
$path(string) (required)
Assets path.

AbstractAutomatticAddressProvider::get_asset_url() code WC 10.3.3

public static function get_asset_url( $path ) {
	/**
	 * Filters the asset URL.
	 *
	 * @since 3.2.0
	 *
	 * @param string $url The asset URL.
	 * @param string $path The asset path.
	 * @return string The filtered asset URL.
	 */
	return apply_filters( 'woocommerce_get_asset_url', plugins_url( $path, Constants::get_constant( 'WC_PLUGIN_FILE' ) ), $path );
}