From 7b74fb895768a7d9efb80a0815a34ceb2463a271 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Mon, 21 Mar 2022 16:06:02 +0400 Subject: [PATCH] Self redirect after updating DDC settings --- modules/ppcp-wc-gateway/src/Settings/SettingsListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-wc-gateway/src/Settings/SettingsListener.php b/modules/ppcp-wc-gateway/src/Settings/SettingsListener.php index 6ddf945d4..315ca654d 100644 --- a/modules/ppcp-wc-gateway/src/Settings/SettingsListener.php +++ b/modules/ppcp-wc-gateway/src/Settings/SettingsListener.php @@ -209,7 +209,7 @@ class SettingsListener { $this->settings->set( 'message_cart_enabled', false ); $this->settings->persist(); - $redirect_url = admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-gateway' ); + $redirect_url = admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-gateway&ppcp-tab=ppcp-credit-card-gateway' ); wp_safe_redirect( $redirect_url, 302 ); exit; }