From b29bdd17b357d01af080d0d7e237201734f9d1fc Mon Sep 17 00:00:00 2001 From: Rasmy Nguyen Date: Fri, 6 Dec 2024 11:42:07 -0500 Subject: [PATCH] fix: update subscription end date --- includes/cli/class-woocommerce-subscriptions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/cli/class-woocommerce-subscriptions.php b/includes/cli/class-woocommerce-subscriptions.php index 101f8fc495..5c1e50abd6 100644 --- a/includes/cli/class-woocommerce-subscriptions.php +++ b/includes/cli/class-woocommerce-subscriptions.php @@ -130,6 +130,7 @@ public function migrate_expired_subscriptions( $args, $assoc_args ) { WP_CLI::line( 'Updating subscription status to expired...' ); } if ( self::$live ) { + $subscription->set_end_date( $last_retry->get_date() ); $subscription->update_status( 'expired', __( 'Subscription status updated by Newspack CLI command.', 'newspack-plugin' ) ); } ++$updated;