Skip to content

Instantly share code, notes, and snippets.

@courtneyr-dev
Last active September 10, 2018 19:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save courtneyr-dev/0067b1e1adcaa4a80569fa7021f07a27 to your computer and use it in GitHub Desktop.
Save courtneyr-dev/0067b1e1adcaa4a80569fa7021f07a27 to your computer and use it in GitHub Desktop.
<?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
Copy link

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