woocommerce_get_asset_url
Return asset URL.
Usage
add_filter( 'woocommerce_get_asset_url', 'wp_kama_woocommerce_get_asset_url_filter' ); /** * Function for `woocommerce_get_asset_url` filter-hook. * * @param $path * * @return */ function wp_kama_woocommerce_get_asset_url_filter( $path ){ // filter... return $path; }
- $path
- -
Where the hook is called
woocommerce_get_asset_url
woocommerce/includes/class-wc-frontend-scripts.php 110
return apply_filters( 'woocommerce_get_asset_url', plugins_url( $path, WC_PLUGIN_FILE ), $path );