Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Unregisters the Google Maps API script on Events Calendar PRO.
*/
add_action( 'wp_print_scripts', 'ecp_remove_google_maps_api', 100 );
function ecp_remove_google_maps_api() {
wp_deregister_script( 'tribe-gmaps' );
}
@josephdickson

This comment has been minimized.

josephdickson commented Sep 10, 2018

Hi Courtney,
Thanks for the code. I've turned it into a very basic plugin if you have any purpose for it. https://joseph-dickson.com/dequeue-google-maps-for-events-calendar-pro/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment