diff --git a/plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php b/plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php index a1cb0c25db4..f2aae9c6390 100644 --- a/plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php +++ b/plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php @@ -151,9 +151,10 @@ class WcPaySubscriptionsPage { // Get a single order that has been paid within the last 30 days. $orders = wc_get_orders( array( - 'date_paid' => '>' . strtotime( '-30 days' ), - 'limit' => 1, - 'return' => 'ids', + 'date_created' => '>' . strtotime( '-30 days' ), + 'status' => wc_get_is_paid_statuses(), + 'limit' => 1, + 'return' => 'ids', ) );