Posted: September 12, 2013 at 10:24 am
September 12, 2013 at 10:24 am I had a previous forum post that’s closed now, but I wanted to post my solution in case others have the same issue. Original post: I ended up adding a checkbox to the Event Options box to control whether the status (Active or Inactive) is applied to all events in the series when that choice is selected for the event update. Then I modified the update_event function so the event active status is only affected when the new checkbox is checked. In the database, I set all old/passed events as not active. in file–event-espresso/includes/admin-files/event-management/advanced_settings.php /*———– MOD BEGIN ———–*/ /*======= Change Event Update Behavior =========*/ //’is_active’ => $is_active, //MOD [/code] /*———– MOD BEGIN ———–*/ /* $sql_data = array(‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, $sql_data = array(‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, ‘%s’, /*———– MOD END ———–*/ /*———– MOD BEGIN ———–*/ //Active Event if (isset($_POST[‘rd_apply_status_to_all_events’]) && $_POST[‘recurrence_apply_changes_to’] == 2){ /*———– MOD END ————-*/
|
|
The support post ‘Recurring Events opens closed events – workaround’ 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.