From dde62ef475dc90bd533abb811c87c36f9af10581 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 30 Jun 2017 11:05:18 +0100 Subject: [PATCH] Added woocommerce_get_asset_url filter Closes #12477 --- includes/class-wc-frontend-scripts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-frontend-scripts.php b/includes/class-wc-frontend-scripts.php index 973065adf65..680c4edec3f 100644 --- a/includes/class-wc-frontend-scripts.php +++ b/includes/class-wc-frontend-scripts.php @@ -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 ); } /**