Added woocommerce_get_asset_url filter

Closes #12477
This commit is contained in:
Mike Jolley 2017-06-30 11:05:18 +01:00
parent 277ccf0ad7
commit dde62ef475
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 );
}
/**