Merge pull request #545 from woocommerce/PCP-478-redirect-after-updating-settings-for-dcc

Self redirect after updating DDC settings
This commit is contained in:
Emili Castells 2022-04-13 10:30:01 +02:00 committed by GitHub
commit 745aaed313
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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&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 );
exit;
}