Merge pull request #15888 from woocommerce/update/12477
Added woocommerce_get_asset_url filter
This commit is contained in:
commit
318be9db8d
|
@ -98,7 +98,7 @@ class WC_Frontend_Scripts {
|
|||
* @return string
|
||||
*/
|
||||
private static function get_asset_url( $path ) {
|
||||
return str_replace( array( 'http:', 'https:' ), '', plugins_url( $path, WC_PLUGIN_FILE ) );
|
||||
return apply_filters( 'woocommerce_get_asset_url', str_replace( array( 'http:', 'https:' ), '', plugins_url( $path, WC_PLUGIN_FILE ) ), $path );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue