Created
August 20, 2015 21:30
-
-
Save jazbek/03467b4b4fb201676fa3 to your computer and use it in GitHub Desktop.
Add recurring-all class to /all/ page
This file contains hidden or 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 | |
add_filter( 'body_class', 'tribe_recurring_all_body_class', 10, 1 ); | |
function tribe_recurring_all_body_class( $classes ) { | |
if ( function_exists( 'tribe_is_showing_all' ) && tribe_is_showing_all() ) { | |
$classes[] = 'recurring-all'; | |
} | |
return $classes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment