Home / Admin / Combined Date – Time Format (Sample: am / pm) | Display Eventbrite Events
Duplicate Snippet

Embed Snippet on Your Site

Combined Date – Time Format (Sample: am / pm) | Display Eventbrite Events

The combined date / time format appears in several layouts and typically looks like 12/02/2019, 10:00 – 11:00. Using this filter, you can change the time format.

filter: (‘wfea_combined_date_time_time_format‘ , $format)

$format defaults to your settings -> general -> time format

The filter will help you achieve the time format in am / pm.

(Note this code snippet applies for "Display Eventbrite Events Plugin" available here: https://fullworksplugins.com/products/widget-for-eventbrite/ )

Code Preview
php
<?php
add_filter( 'wfea_combined_date_time_time_format', function ( $format ) {
	return 'g:i a';
}, 10, 1 );

Comments

Add a Comment