Changing Default Event Start & End Times (

Home Forums Calendar Products Events Calendar PRO Changing Default Event Start & End Times (

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1080346
    laughmasters
    Participant

    Found this:https://theeventscalendar.com/knowledgebase/change-the-default-startend-time-for-new-events/
    But… it doesn’t seem to work for start times that aren’t on the hour. For example my 6:30pm start time using code below shows up as 11pm
    new Change_Tribe_Default_Event_Times(1830, 21);

    #1080490
    Brook
    Participant

    Howdy laughmasters!

    I can see your difficulty. That snippet was not designed to set the minutes. You certainly could set the minutes though if you write a modeled after that one. The relevant filter would be ‘tribe_get_minute_options’.

    This is definitely going to require a decent measure of PHP knowledge to write though. I don’t your proficiency with such things, but if you don’t have that then above might sound a bit like greek.

    Does that all make sense?

    Cheers!

    – Brook

    #1080580
    laughmasters
    Participant

    So I’m the first person to want to set default start times that aren’t on the exact hour?
    Seems strange – you know? Time and Date – pretty basic/important elements in an events calendar.
    Somebody must have that PHP somewhere?
    Any chance this could just be incorporated into the backend? (Yes, I have made this feature request;-)

    #1081242
    Brook
    Participant

    I saw that feature request! Thank you for suggesting it.

    I dug around and found a couple of other people wanting a minute changing snippet as well. Usually when a few people request it, then we can get the budget to write it. So I did. Just updated this tutorial. It now supports changing default minutes and hours.

    I would love to see that becoming a setting on the Defaults tab at some point. I suspect that once we have finished writing automated tests for most of our current code, it will make a lot of sense to add more settings like this to the defaults tab. Until then though we have to manually test every setting in our multiple times every couple weeks, often retesting it with various combos of other settings. So we need to see a lot of demand for a setting before we add it. Right now we only have 9 votes for default times, so it’s probably a ways off before it becomes a baked in option.

    Let me know if you need anything else. Cheers!
    – Brook

    #1081319
    laughmasters
    Participant

    Thank you.
    That’s great.

    #1081588
    Brook
    Participant

    You’re extra duper welcome!

    • Brook
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Changing Default Event Start & End Times (’ is closed to new replies.