Process_Worker_Service::before_migration_applied( TECEventsCustom_TablesV1MigrationReportsEvent_Report $event_report, TECEventsCustom_TablesV1MigrationStrategiesStrategy_Interface $strategy, TECEvents_ProCustom_TablesV1Migrationnumeric $post_id, bool $dry_run )
Does some cleanup before we do migration for this event.
Contents
Parameters
- $event_report
-
(TECEventsCustom_TablesV1MigrationReportsEvent_Report) (Required) The event report.
- $strategy
-
(TECEventsCustom_TablesV1MigrationStrategiesStrategy_Interface) (Required) The strategy to use for this event.
- $post_id
-
(TECEvents_ProCustom_TablesV1Migrationnumeric) (Required) The post ID of the event.
- $dry_run
-
(bool) (Required) Whether this is a dry run or not.
Source
File: src/Events_Pro/Custom_Tables/V1/Migration/Process_Worker_Service.php
public function before_migration_applied( Event_Report $event_report, Strategy_Interface $strategy, $post_id, bool $dry_run ): void {
if ( ! $dry_run ) {
// Delete any pending recurrence creation for real migrations. These are not needed anymore.
delete_post_meta( $post_id, '_EventNextPendingRecurrence' );
}
$this->update_event_recurrence_meta( $post_id );
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |