mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Update the option when clearing the DB
When clearing the DB from the old settings UI we need to update the option to show the new UI after.
This commit is contained in:
parent
eb576afc5b
commit
aa391e64fd
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ class UninstallModule implements ServiceModule, ExtendingModule, ExecutableModul
|
|||
$clear_db->clear_scheduled_actions( $scheduled_action_names );
|
||||
$clear_db->clear_actions( $action_names );
|
||||
|
||||
update_option( 'woocommerce-ppcp-is-new-merchant', '1' );
|
||||
|
||||
wp_send_json_success();
|
||||
return true;
|
||||
} catch ( Exception $error ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue