Support

Home Forums Event Espresso Premium Clean up Abandoned Transactions

Clean up Abandoned Transactions

Posted: October 5, 2020 at 12:28 am


digiposs

October 5, 2020 at 12:28 am

Hi!

I read in the forum that Abandoned Transactions are cleaned up weekly. Is there a way I can adjust that timing and make it daily? For our purposes, we don’t really want to see all of the non complete transactions.


Tony

  • Support Staff

October 5, 2020 at 7:16 am

Hi there,

I don’t recommend changing this and I wouldn’t use daily but maybe every 3 days.

In any case, if you wish to do so there technically 2 filters for this, first:

FHEE__EEM_Transaction__delete_junk_transactions__time_to_leave_alone

Then:

FHEE__EEM_Line_Item__delete_line_items_with_no_transaction__time_to_leave_alone

They both default to WEEK_IN_SECONDS but you can return the length of time you want them to remain.

To return 3 days you can use something like:

function tw_ee_my_custom_time_to_leave_alone() {
    return 3 * DAY_IN_SECONDS;
}
add_filter('FHEE__EEM_Transaction__delete_junk_transactions__time_to_leave_alone', 'tw_ee_my_custom_time_to_leave_alone'); 
add_filter('FHEE__EEM_Line_Item__delete_line_items_with_no_transaction__time_to_leave_alone', 'tw_ee_my_custom_time_to_leave_alone');

The support post ‘Clean up Abandoned Transactions’ 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