• Resolved eff16

    (@eff16)


    Hi there,
    I want to avoid the need for entering an end date or an expiration date.
    Is there a way to automatically set the expiration date to (start date + 1 day)?

    Here is an example:

    The user creates a new event that starts 17.05.2021 @ 19:00 o´clock and ends on the same day @ 22:00 o´clock.
    If no expiration date is set, the event will never expire and will be shown in the event list forever.
    The only way to let the event expire correctly is to manually set an expiration date to (start date + 1 day).

    This is prone for errors and many users will forget to set an expiration date or make a mistake when entering the value.

    It would be very nice if the expiration date would automatically be calculated somehow like this:

    if (!empty(_end_date) && (_end_date != _start_date)) {
    _expiration_date = _end_date;
    } else {
    _expiration_date = (_start_date + 1 day);
    }

    If there is a way I can add a filter or an action to a hook to perform the above, please tell me how to do it! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Automatically set expiration date’ is closed to new replies.