# ever-compare/trunk/uninstall.php

Ever Compare – Products Compare Plugin for WooCommerce, version trunk. 22 lines.

- Page: https://pluginprobe.com/plugins/ever-compare/trunk/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/ever-compare/trunk/raw/uninstall.php
- Modified: 2023-05-17T09:46:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ever-compare/trunk/code/uninstall.php#L10-L20`.

```php
<?php
/*
 * EverCompare Uninstall plugin
 * Uninstalling EverCompare deletes page, and options.
 */

if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) exit; // Exit if accessed directly

function ever_compare_uninstall(){

	// Delete page created for this plugin
	$option_data = get_option( 'ever_compare_table_settings_tabs' );
	wp_delete_post( $option_data['compare_page'], true );

	// Option delete
	delete_option( 'evercompare_version' );
	delete_option( 'ever_compare_settings_tabs' );
	delete_option( 'ever_compare_table_settings_tabs' );
	delete_option( 'ever_compare_style_tabs' );
	
}
ever_compare_uninstall();
```
