MP3-jPlayer with WooCommerce
-
We’re using the MP3-jPlayer along with WooCommerce. We’ve noticed that when making requests to the WooCommerce REST API, e.g. to download all products:
/wp-json/wc/v2/products
.. that the following Javascript code is being inserted into the response from the API before the JSON payload:
<script>
var MP3jPLAYLISTS = [];
var MP3jPLAYERS = [];
</script>.. which is throwing out our JSON parser which is only expecting valid JSON data.
Do you know where this is coming from and if there is a way to disable this so it’s not included with the REST API requests?
Thank you,
– Jay
- The topic ‘MP3-jPlayer with WooCommerce’ is closed to new replies.