Self redirect after updating DDC settings

This commit is contained in:
Narek Zakarian 2022-03-21 16:06:02 +04:00
parent a926aa7ca3
commit 7b74fb8957

View file

@ -209,7 +209,7 @@ class SettingsListener {
$this->settings->set( 'message_cart_enabled', false ); $this->settings->set( 'message_cart_enabled', false );
$this->settings->persist(); $this->settings->persist();
$redirect_url = admin_url( 'admin.php?page=wc-settings&tab=checkout&section=ppcp-gateway' ); $redirect_url = admin_url( 'admin.php?page=wc-settings&tab=checkout&section=ppcp-gateway&ppcp-tab=ppcp-credit-card-gateway' );
wp_safe_redirect( $redirect_url, 302 ); wp_safe_redirect( $redirect_url, 302 );
exit; exit;
} }