How would I Redirect an existing WooCommerce customer to a specific url after Checkout
The following should suffice. It will redirect to your custom URL only if the order has not failed. add_action( ‘woocommerce_thankyou’, ‘ii_redirect_thankyou’); function ii_redirect_thankyou( $order_id ){ $customer_orders = get_posts( array( ‘numberposts’ => 2, // getting 2 as by the time this purchase has happened the count will be 1. ‘meta_key’ => ‘_customer_user’, ‘meta_value’ => get_current_user_id(), ‘post_type’ … Read more