Merge pull request #3185 from woocommerce/PCP-4279-existing-merchant-disconnecting-via-clear-now-button-should-see-new-ui-afterwards

Update the option when clearing the DB (4279)
This commit is contained in:
Emili Castells 2025-03-07 11:56:35 +01:00 committed by GitHub
commit 177efd32a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 ) {