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:
Narek Zakarian 2025-03-06 16:38:57 +04:00
parent eb576afc5b
commit aa391e64fd
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

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