Title: Create redirection after transaction confirmed
Last modified: August 21, 2020

---

# Create redirection after transaction confirmed

 *  Resolved [saens](https://wordpress.org/support/users/saens/)
 * (@saens)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/create-redirection-after-transaction-confirmed/)
 * Hi,
    To prevent people re-visiting a transaction completed page (domain.com/checkout-
   completed/abc/xyz) I was thinking to let WordPress automatically create a redirect
   once a page that meets requirements has been visited once (or after the order
   has been set to completed). This then prevents order-completed pages from being
   visited more than once (preventing Analytics double counting)
 * Is this possible somehow?
 * I found it’s possible to hook into Woo’s order completed and get get the URL 
   of the order-received page. Trying to figure out how to hook into Redirection
   to create a redirection.
 * Thanks!
    -  This topic was modified 5 years, 11 months ago by [saens](https://wordpress.org/support/users/saens/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/create-redirection-after-transaction-confirmed/#post-13296236)
 * Please see [http://redirection.me/developer/](http://redirection.me/developer/)
 *  Thread Starter [saens](https://wordpress.org/support/users/saens/)
 * (@saens)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/create-redirection-after-transaction-confirmed/#post-13299811)
 * Hi, thanks.
    I’m not seeing a concrete example of how to create a redirection(
   except for standard wordpress functions). Like wp_safe_redirect(‘/’, 301);
 * redirection_create_redirect($source_url, $destination_url) or something doesn’t
   work. Do you have a concrete example of how to programmatically create a redirection
   in your plugin?
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/create-redirection-after-transaction-confirmed/#post-13299824)
 * You can use the REST API:
 * [https://redirection.me/developer/rest-api/#api-Redirect-CreateRedirect](https://redirection.me/developer/rest-api/#api-Redirect-CreateRedirect)
 * Or you can use PHP:
 * [https://redirection.me/developer/php-api/](https://redirection.me/developer/php-api/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Create redirection after transaction confirmed’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/create-redirection-after-transaction-confirmed/#post-13299824)
 * Status: resolved