Home > Docs > Subscriptions for WooCommerce > Redirect to a custom page after the successful purchase of a WooCommerce subscription

Redirect to a custom page after the successful purchase of a WooCommerce subscription

Last updated on July 12, 2023

When using the Subscription for WooCommerce plugin, you may want to redirect customers to a specific page after they have successfully completed a purchase. This article provides a code snippet that enables to achieve this custom redirection.

Follow the steps to redirect a customer to a custom page after a successful WooCommerce subscription purchase.

  1. Navigate to Appearance > Theme File Editor > functions.php file from the WordPress dashboard.
  2. Copy the code snippet provided below.
  3. Paste the code snippet into the functions.php file.
  4. Replace the URL “http://www.webtoffee.com/” with the desired page URL, where you want to redirect users.
  5. Save the functions.php file.

Code snippet