GoogleMaps won’t enqueue in plugin

I cannot get google maps to enqueue in my plugin. It is not showing in the html source at all.

This is working locally, but when I try and use on a Multisite platform it is not – I don’t know if this is relevant or not.

$gmaps = “//maps.googleapis.com/maps/api/js?libraries=places,drawing&key=”. $ApiKey;

wp_enqueue_script(‘myplugin_google_maps’, $gmaps, array(),”,true);

Am I doing anything wrong?

Thanks

Read more here:: GoogleMaps won’t enqueue in plugin

Leave a Reply

Your email address will not be published. Required fields are marked *