Merge pull request #15888 from woocommerce/update/12477

Added woocommerce_get_asset_url filter
This commit is contained in:
Claudiu Lodromanean 2017-06-30 08:49:39 -07:00 committed by GitHub
commit 318be9db8d
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
/**