Home › Forums › Calendar Products › Events Calendar PRO › Changing Default Event Start & End Times (
- This topic has 5 replies, 2 voices, and was last updated 10 years, 1 month ago by
Brook.
-
AuthorPosts
-
February 22, 2016 at 5:37 pm #1080346
laughmasters
ParticipantFound 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);February 22, 2016 at 11:01 pm #1080490Brook
ParticipantHowdy 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
February 23, 2016 at 3:00 am #1080580laughmasters
ParticipantSo 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;-)February 23, 2016 at 10:29 pm #1081242Brook
ParticipantI 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!
– BrookFebruary 24, 2016 at 3:06 am #1081319laughmasters
ParticipantThank you.
That’s great.February 24, 2016 at 10:44 am #1081588Brook
ParticipantYou’re extra duper welcome!
- Brook
-
AuthorPosts
- The topic ‘Changing Default Event Start & End Times (’ is closed to new replies.
