在我的商店中,我正在使用带有此代码的特殊感谢页面。但是我有一个产品允许访客结帐的功能,我想更改产品允许访客结帐的谢谢页面。我怎么能得到这个。 This code is allowed guest checkout
// ödeme sonrası özel teşekkürler sayfasına yönlendiriyor
add_action( 'woocommerce_thankyou', 'bbloomer_redirectcustom');
function bbloomer_redirectcustom( $order_id ){
$order = wc_get_order( $order_id );
$url = 'https://www.sukulentbahcem.com/tesekkurler-sayfasi/';
if ( ! $order->has_status( 'failed' ) ) {
wp_safe_redirect( $url );
exit;
}
}