Question
So, wp_localize_script() are awesome to add custom data to a script. And these data gets added to the HTML like: <script id='woocommerce_some-js-extra' type="text/javascript"> var wc_some_params = {"key":"sdfsfsdfs","use_iframes":"1","images_dir":"https://dadadasdad.com/wp-content/plugins/woocommerce-some-gateway/assets/images"}; </script> This is all good. But the problem is that if I want to add an extra ...
0
, , , 2 months 0 Answers 46 views