Skip to content

Commit

Permalink
Remove autoload from the plugin option on plugin deactivation
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Sep 4, 2024
1 parent f867f36 commit 53eab76
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions uninstall.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/**
* Uninstall the plugin.
*
* Remove autoload from the plugin option.
*
* @package Progress_Planner
*/

// If uninstall not called from WordPress, then exit.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}

// Remove autoload from the plugin option.
$aaa_option_value = get_option( 'option_optimizer' );
update_option( 'option_optimizer', $aaa_option_value, false );

Check failure on line 17 in uninstall.php

View workflow job for this annotation

GitHub Actions / Check code style

Expected 1 newline at end of file; 0 found

0 comments on commit 53eab76

Please sign in to comment.