Home / Admin / Combined Date – Time Format (Sample: 16th January) | Display Eventbrite Events
Duplicate Snippet

Embed Snippet on Your Site

Combined Date – Time Format (Sample: 16th January) | 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 date format.

filter: (‘wfea_combined_date_time_date_format‘ , $format)

$format defaults to your settings -> general -> date format, plus a , and space

The filter will help you achieve the date format in 16th January.

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

Reference: Date formats are documented here - https://wordpress.org/support/article/formatting-date-and-time/

Code Preview
php
<?php
add_filter( 'wfea_combined_date_time_date_format', function ( $format ) {
	return 'jS F';
}, 10, 1 );

Comments

Add a Comment