Support

Home Forums Event Espresso Premium How To Customize Date Range Displays

How To Customize Date Range Displays

Posted: February 19, 2015 at 10:06 am

Viewing 2 reply threads


Bev Hoernig

February 19, 2015 at 10:06 am

I’m using EE4.6.9 on WP 4.1.1 and want to modify the default display of event dates/times, ie:

https://gist.github.com/lorenzocaum/366b0348693b859a1b7891d29aee9c34#file-gist-md

I believe the code responsible for this presentation is ~/public/template_tags.php at function espresso_list_of_event_dates. What would you recommend for overriding this function such that future updates won’t bugger me?


Dean

February 20, 2015 at 3:32 am

Hi,

That function is pluggable, meaning you can copy it to a site specific plugin and amend it there, updates then won’t over write your changes.

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

You don’t need the surrounding if statement so just

https://gist.github.com/lorenzocaum/366b0348693b859a1b7891d29aee9c34#file-gist2-md


Bev Hoernig

February 20, 2015 at 10:38 am

Thanks Dean! Below I’ve pasted my code for others interested in a similar solution. It relies on an understanding of the EE_Datetime class.

https://gist.github.com/lorenzocaum/366b0348693b859a1b7891d29aee9c34#file-gist3-md

Viewing 2 reply threads

The support post ‘How To Customize Date Range Displays’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso