Skip to content

Commit be0b3a5

Browse files
committed
Delete all registered options on plugin deactivation.
1 parent 8f4724f commit be0b3a5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Plugin.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,17 @@ public function do_deactivation_process() {
300300

301301
$this->clear_abandoned_checkouts_expiration_check();
302302

303+
delete_option( CheckoutsTable::DB_VERSION_OPTION_NAME );
304+
delete_option( ConnectionStatus::CC_CONNECTION_USER_ID );
305+
delete_option( ConnectionStatus::CC_FIRST_CONNECTION );
306+
delete_option( 'constant_contact_for_woo_has_setup' );
307+
303308
if ( ! get_option( ConnectionStatus::CC_CONNECTION_ESTABLISHED_KEY ) ) {
304309
return;
305310
}
306311

307312
delete_option( ConnectionStatus::CC_CONNECTION_ESTABLISHED_KEY );
313+
308314
}
309315

310316
/**

0 commit comments

Comments
 (0)