Skip to content

Instantly share code, notes, and snippets.

View josephdickson's full-sized avatar
Coffee is for Committers!

Joseph Dickson josephdickson

Coffee is for Committers!
View GitHub Profile
<?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 December 21, 2023 12:27
The Events Calendar: Basic Conditional Wrappers
<?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