View Larger Image Redirect to a Custom Thank You Page After Checkout in WooCommerce Without Any Plugins go to function.php in your child theme and : Copy to ClipboardSyntax Highlighter/* Redirect Woocommerce to a custom page after checkout */ add_action('woocommerce_thankyou','w3site_redirect_woo_checkout'); function w3site_redirect_woo_checkout($order_id){ $order = wc_get_order ($order_id); $url ='/checkout-thank-you/'; if (!$order->has_status('failed')){ wp_safe_redirect($url); exit; } } /* END: Redirect Woocommerce to a custom page after checkout */ By Mir Saeid|2024-05-24T10:30:12-04:00May 24th, 2024|Blog|0 Comments Share This Story, Choose Your Platform! Facebook About the Author: Mir Saeid Experienced computer engineer with post graduate diploma in e-Business, Web Developer and Programmer Related Posts Add second description to category and shows up under products in WordPress Gallery Add second description to category and shows up under products in WordPress ajax-loader.gif problem Gallery ajax-loader.gif problem How to capture client’s IP in PHP Gallery How to capture client’s IP in PHP How to Configure SMTP for office 365 in Easy WP SMTP Plugin – WordPress Gallery How to Configure SMTP for office 365 in Easy WP SMTP Plugin – WordPress How to Check Disk Space Usage on Google Cloud Gallery How to Check Disk Space Usage on Google Cloud