Skip to content

Instantly share code, notes, and snippets.

@jazbek
Created August 20, 2015 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazbek/03467b4b4fb201676fa3 to your computer and use it in GitHub Desktop.
Save jazbek/03467b4b4fb201676fa3 to your computer and use it in GitHub Desktop.
Add recurring-all class to /all/ page
<?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