Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Introduce Uninstall method
  • Loading branch information
merkys7 committed Jun 2, 2022
commit 4de0054c8ae0ae5ad6bf743f79caadf8e04b0973
14 changes: 14 additions & 0 deletions uninstall.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/**
* Plugin uninstaller logic.
*
* @package performance-lab
* @since 1.2.0
*/

// If uninstall.php is not called by WordPress, bail.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}

delete_option( 'perflab_modules_settings' );