HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /var/www/kevin-demo/wp-content/plugins/adthrive-ads/uninstall.php
<?php
/**
 * Fired when the plugin is uninstalled.
 *
 * @package AdThrive Ads
 */

if ( ! defined( 'ADTHRIVE_ADS_FILE' ) ) {
	define( 'ADTHRIVE_ADS_FILE', __FILE__ );
}
if ( ! defined( 'ADTHRIVE_ADS_PATH' ) ) {
	define( 'ADTHRIVE_ADS_PATH', plugin_dir_path( ADTHRIVE_ADS_FILE ) );
}

require_once ADTHRIVE_ADS_PATH . 'class-options.php';

// Cleaning up site.js file if it was downloaded
require_once ABSPATH . 'wp-admin/includes/file.php';
if ( \WP_Filesystem() ) {
	global $wp_filesystem;
	$filename = ADTHRIVE_ADS_PATH . 'site.js';

	if ( $wp_filesystem->is_file( $filename ) ) {
		$wp_filesystem->delete( $filename );
	}

	\AdThrive_Ads\Options::remove_option( 'site_js' );
}