# payplug/2.7.2/uninstall.php

PayPlug for WooCommerce (Official), version 2.7.2. 19 lines.

- Page: https://pluginprobe.com/plugins/payplug/2.7.2/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/payplug/2.7.2/raw/uninstall.php
- Modified: 2024-02-21T12:43:42+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/payplug/2.7.2/code/uninstall.php#L10-L20`.

```php
<?php

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

$option_name = 'woocommerce_payplug_settings';

if( get_option('woocommerce_payplug_settings') ){
	delete_option( $option_name );
	// for site options in Multisite
	delete_site_option( $option_name );

	\Payplug\PayplugWoocommerce\Model\Lock::delete_lock_table();

}


```
