Skip to content

Instantly share code, notes, and snippets.

@ooobo
ooobo / events-conditional-wrappers.php
Created June 23, 2012 07:48 — forked from jo-snips/events-conditional-wrappers.php
The Events Calendar: Basic Conditional Wrappers
add_action( 'wp_print_styles', 'deregister_styles', 100 );
function deregister_styles() {
if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
} elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages
} elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List
} elseif( tribe_is_event() && is_single() ) { // Single Events