Support

Home Forums Event Espresso Premium On the backend, default to the current month instead of the next month

On the backend, default to the current month instead of the next month

Posted: April 12, 2018 at 8:55 am


cambridgejbs

April 12, 2018 at 8:55 am

When we create an event on the backend and go to select a start date, the calendar automatically displays the next two months instead of the current month (so if it’s April, we see May and June, and have to scroll back to choose a date in April). Is it possible to change this so it shows the current month and the next month by default?


Josh

  • Support Staff

April 13, 2018 at 2:14 pm

Hi there,

Yes this is possible and involves using a bit of PHP & a WordPress filter hook to change the default start and end dates. Here’s a gist that shows some example code:

https://gist.github.com/joshfeck/abfbfb34dbb1019c37f96e31a1330e9d

You can add the above to a functions plugin.


cambridgejbs

April 16, 2018 at 4:24 am

Great, thanks, we’ll try this!

The support post ‘On the backend, default to the current month instead of the next month’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  cambridgejbs 3 months, 1 week ago ago

Topic Tags

Tagged: 

Notifications

This topic is:
pending
Do NOT follow this link or you will be banned from the site!