PluginProbe
Pay with Vipps and MobilePay for WooCommerce / trunk
Pay with Vipps and MobilePay for WooCommerce vtrunk
6.1.10 6.1.9 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1.0 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 6.0.0 5.4.3 5.4.2 5.4.1 5.4.0 5.3.4 trunk 1.10.0 1.10.1 All 181 releases
woo-vipps / uninstall.php

uninstall.php in Pay with Vipps and MobilePay for WooCommerce trunk, at uninstall.php

21 lines 653 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) || exit;
4
5 // if uninstall not called from WordPress exit
6 defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
7
8 /*
9 * Only remove ALL product and page data if WC_REMOVE_ALL_DATA constant is set to true in user's
10 * wp-config.php. This is to prevent data loss when deleting the plugin from the backend
11 * and to ensure only the site owner can perform this action.
12 */
13 if ( defined( 'WC_REMOVE_ALL_DATA' ) && true === WC_REMOVE_ALL_DATA ) {
14 global $wpdb;
15
16 // Delete options.
17 delete_option('woocommerce_vipps_recurring_settings');
18
19 $wpdb->query( 'DELETE FROM wp_options WHERE option_name LIKE "vipps_recurring_dismissed_%";' );
20 }
21