Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function community_events_12hr_time() {
return 'g:i a';
function setup_time_option_filter() {
add_action( 'pre_option_time_format', 'community_events_12hr_time' );
function teardown_time_option_filter() {
remove_action( 'pre_option_time_format', 'community_events_12hr_time' );
add_action( 'tribe_events_community_section_before_datetime', 'setup_time_option_filter' );
add_action( 'tribe_events_community_section_after_datetime', 'teardown_time_option_filter' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.