Home > Docs > Subscriptions for WooCommerce > Change the Order Status After Successful Payment Using Subscriptions for WooCommerce

Change the Order Status After Successful Payment Using Subscriptions for WooCommerce

Last updated on January 13, 2026

The following code snippet can be used to change the status of an order to ‘completed’ after a payment has been processed successfully by the Subscription for WooCommerce plugin. Add the following code snippet to the active child theme function.php.