# woo-vipps/6.2.0/uninstall.php

Pay with Vipps and MobilePay for WooCommerce, version 6.2.0. 21 lines.

- Page: https://pluginprobe.com/plugins/woo-vipps/6.2.0/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/woo-vipps/6.2.0/raw/uninstall.php
- Modified: 2025-01-13T14:06:20+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/woo-vipps/6.2.0/code/uninstall.php#L10-L20`.

```php
<?php

defined( 'ABSPATH' ) || exit;

// if uninstall not called from WordPress exit
defined( 'WP_UNINSTALL_PLUGIN' ) || exit;

/*
 * Only remove ALL product and page data if WC_REMOVE_ALL_DATA constant is set to true in user's
 * wp-config.php. This is to prevent data loss when deleting the plugin from the backend
 * and to ensure only the site owner can perform this action.
 */
if ( defined( 'WC_REMOVE_ALL_DATA' ) && true === WC_REMOVE_ALL_DATA ) {
	global $wpdb;

    // Delete options.
    delete_option('woocommerce_vipps_recurring_settings');

	$wpdb->query( 'DELETE FROM wp_options WHERE option_name LIKE "vipps_recurring_dismissed_%";' );
}

```
