Adding a library to the API
-
Hello.
I am trying to integrate reviews from GMB to the store pages. I´ve run some succesfull test on plain HTML pages outside of WordPress, but when I tried to integrate it with WordPress I encountered the next issue:
Currently, the website loads the Maps API like this:<script type=’text/javascript’ src=’https://maps.google.com/maps/api/js?language=en&key=AIzaSyACbQ3dyjpzYOfOJXfrEZW5Q-l7cyBytm8&v=3.33′></script>
I need to make it so it loads the Places API, which is just adding an extra parameter (libraries=places)in the API call, like this:
<script type=’text/javascript’ src=’https://maps.google.com/maps/api/js?language=en&key=AIzaSyACbQ3dyjpzYOfOJXfrEZW5Q-l7cyBytm8&v=3.33&libraries=places’></script>
So my question is, how can I do that? Or more exactly, where in the code should I add this extra parameter? I am comfortable is changing the plugin code if it is required.
Thank you!The page I need help with: [log in to see the link]
The topic ‘Adding a library to the API’ is closed to new replies.