Created
July 15, 2014 14:17
-
-
Save ckpicker/e9d613e438de62550b8f to your computer and use it in GitHub Desktop.
Community Events 3.6 // Limit Minutes to just '00' and '30'
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
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