PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / trunk
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant vtrunk
2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 1.9.12 All 59 releases
merchant / uninstall.php

uninstall.php in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant trunk, at uninstall.php

17 lines 580 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Merchant Uninstall
4 */
5
6 defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
7
8 global $wpdb, $wp_version;
9
10 /*
11 * Only remove ALL merchant & merchant-pro data if WC_REMOVE_ALL_DATA constant is set to true in user's
12 * wp-config.php. This is to prevent data loss when deleting the plugin from the backend
13 * and to ensure only the site owner can perform this action. (Copied from WooCommerce).
14 */
15 if ( defined( 'WC_REMOVE_ALL_DATA' ) && true === WC_REMOVE_ALL_DATA ) {
16 $wpdb->query( $wpdb->prepare( "DROP TABLE IF EXISTS %s", $wpdb->prefix . 'merchant_sales_notifications' ) );
17 }