Skip to content

Instantly share code, notes, and snippets.

@geoffgraham
Created January 16, 2015 19:46
Show Gist options
  • Save geoffgraham/9ff7c5c6fdefa904a182 to your computer and use it in GitHub Desktop.
Save geoffgraham/9ff7c5c6fdefa904a182 to your computer and use it in GitHub Desktop.
Events Calendar 3.9.1 // Remove event times from past events
// Works, but seems to only yake hold on page refresh
add_filter('tribe_event_is_all_day', 'all_day_enforced_field');
function all_day_enforced_field ($output ) {
if ( !is_admin() && tribe_is_past() && tribe_is_event() ) {
$output = true;
}
return $output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment