Current Path : /storage/v11800/acejewellery/public_html/wp-content/plugins/variation-swatches-for-woocommerce/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/acejewellery/public_html/wp-content/plugins/variation-swatches-for-woocommerce/uninstall.php |
<?php
/**
* Uninstall plugin
*/
// If uninstall not called from WordPress exit
if( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
global $wpdb;
//change to standard select type custom attributes
$table = $wpdb->prefix . 'woocommerce_attribute_taxonomies';
$update = "UPDATE `$table` SET `attribute_type` = 'select' WHERE `attribute_type` != 'text'";
$wpdb->query( $update );