Skip to content

Instantly share code, notes, and snippets.

@ckpicker
Created July 15, 2014 14:17
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 ckpicker/e9d613e438de62550b8f to your computer and use it in GitHub Desktop.
Save ckpicker/e9d613e438de62550b8f to your computer and use it in GitHub Desktop.
Community Events 3.6 // Limit Minutes to just '00' and '30'
add_action( 'wp_head', 'community_limit_minutes' );
function community_limit_minutes() {
if ( tribe_is_community_edit_event_page() ) {
?>
<style>
select[name='EventStartMinute'] option, select[name='EventEndMinute'] option {display:none !important;}
select[name='EventStartMinute'] option[value='00'], select[name='EventStartMinute'] option[value='30'], select[name='EventEndMinute'] option[value='00'], select[name='EventEndMinute'] option[value='30'] {display:inline !important;}
</style>
<?php
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment