Support

Home Forums Event Espresso Premium Question on time length for reserved tickets

Question on time length for reserved tickets

Posted: May 20, 2021 at 2:14 pm

Viewing 4 reply threads


Jason Lee

May 20, 2021 at 2:14 pm

Hey!

Just had a quick question to confirm. As I understand, the default time that a “reserved” ticket is held to prevent overselling is 60 minutes. If we want to change that to 15 minutes, is this the correct code? Also, is the time in there the correct amount for 15 minutes?

function tw_ee_change_session_lifespan() {
return 30 * MINUTE_IN_SECONDS;
}
add_filter( 'FHEE__EE_Session__construct___lifespan', 'tw_ee_change_session_lifespan');

Thanks!


Jason Lee

May 20, 2021 at 2:21 pm

I saw the snippet here: https://eventespresso.com/topic/reserved-tickets-view-change-time-they-stay-reserved/

The link mentiones to use 30 *, but I wasnt sure if that was correct for 15 minutes.


Jason Lee

May 20, 2021 at 3:45 pm

I tested this and it looks like it should just be 15 * MINUTE_IN_SECONDS. I wanted to update in case anyone else has the same question.

Also, just a note, the snippet linked from the other support thread link has 30 instead of 15 but references 15 minutes.


Tony

  • Support Staff

May 25, 2021 at 4:46 am

Hi Jason,

My apologies for the above mix up, I think I used that same gist in a couple of examples and modified the time to suit… schoolboy error on my part.

I’ve updated the gist to default to 15 and added some details on how to change the value which should hopefully help future readers.


Jason Lee

May 25, 2021 at 8:05 am

All good! You guys do so much in the support department, you’re allowed an off-moment haha. Thanks again for the help. I’ll mark this one resolved.

Viewing 4 reply threads

The support post ‘Question on time length for reserved tickets’ 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