Created
January 16, 2015 19:46
-
-
Save geoffgraham/9ff7c5c6fdefa904a182 to your computer and use it in GitHub Desktop.
Events Calendar 3.9.1 // Remove event times from past events
This file contains 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
// 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