mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
redirect after successfully cleared DB
This commit is contained in:
parent
6a9c76fa9e
commit
9eb14e192a
2 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,7 @@ document.addEventListener(
|
|||
jQuery(clearDbConfig.successMessage).insertAfter(clearButton);
|
||||
setTimeout(()=> jQuery(clearDbConfig.messageSelector).remove(),3000);
|
||||
clearButton.removeAttribute('disabled');
|
||||
window.location.replace(clearDbConfig.redirectUrl);
|
||||
});
|
||||
})
|
||||
},
|
||||
|
|
|
@ -64,6 +64,7 @@ return array(
|
|||
'<div class="error clear-db-info-message"><p><strong>%1$s</strong></p></div>',
|
||||
esc_html__( 'Operation failed. Check WooCommerce logs for more details.', 'woocommerce-paypal-payments' )
|
||||
),
|
||||
'redirectUrl' => admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-gateway' ),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue