Last active
September 10, 2018 19:58
-
-
Save courtneyr-dev/0067b1e1adcaa4a80569fa7021f07a27 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/