test .
https://t.me/RX1948
Server : Apache
System : Linux festive-vaughan.27-254-111-205.plesk.page 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64
User : acaindustrial ( 10114)
PHP Version : 8.2.25
Disable Function : opcache_get_status
Directory :  /var/www/vhosts/acaindustrial.co.th/httpdocs/wp-content/plugins/xo-liteslider/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/vhosts/acaindustrial.co.th/httpdocs/wp-content/plugins/xo-liteslider/uninstall.php
<?php
/**
 * Plugin uninstaller logic.
 *
 * @package xo-slider
 * @since 1.0.0
 */

if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit();
}

$options = get_option( 'xo_slider_options' );
if ( false !== $options && isset( $options['delete_data'] ) && $options['delete_data'] ) {
	/**
	 * Uninstall palugin.
	 */
	function xo_liteslider_delete_plugin() {
		global $wpdb;

		$posts = get_posts(
			array(
				'numberposts' => -1,
				'post_type'   => 'xo_liteslider',
				'post_status' => 'any',
			)
		);

		foreach ( $posts as $post ) {
			wp_delete_post( $post->ID, true );
		}

		delete_option( 'xo_slider_version' );
		delete_option( 'xo_slider_options' );
	}

	if ( is_multisite() ) {
		$site_ids = get_sites( array( 'fields' => 'ids' ) );
		foreach ( $site_ids as $site_id ) {
			switch_to_blog( $site_id );
			xo_liteslider_delete_plugin();
		}
		restore_current_blog();
		switch_to_blog( $original_blog_id );
	} else {
		xo_liteslider_delete_plugin();
	}
}

https://t.me/RX1948 - 2025