Skip to content

Instantly share code, notes, and snippets.

Coffee is for Committers!

Joseph Dickson josephdickson

Coffee is for Committers!
View GitHub Profile
View DequeueGoogleMapsAPIforECP.php
<?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' );
}
@jo-snips
jo-snips / events-conditional-wrappers.php
Last active Jun 25, 2020
The Events Calendar: Basic Conditional Wrappers
View events-conditional-wrappers.php
<?php
/*-----------------------------------------------------------------------------------*/
/* Conditional Logic to Detect Various Event Related Views/Pages
/*-----------------------------------------------------------------------------------*/
if( tribe_is_month() && !is_tax() ) { // Month View Page
echo 'were on the month view page';
} elseif( tribe_is_month() && is_tax() ) { // Month View Category Page
You can’t perform that action at this time.