HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux cwp.nolwa.com 4.18.0-536.el8.x86_64 #1 SMP Thu Jan 18 15:15:29 UTC 2024 x86_64
User: shifalds3 (1031)
PHP: 7.4.10
Disabled: NONE
Upload Files
File: /home/shifalds3/public_html/wp-content/plugins/daftplug-instantify/uninstall.php
<?php 

if (!defined('ABSPATH') && !defined('WP_UNINSTALL_PLUGIN')) exit;

$optionName = 'daftplug_instantify';
$options = array('purchase_code', 'settings', 'subscribed_devices');

if (get_option("{$optionName}_purchase_code")) {
    $params = array(
        'body' => array(
            'action' => 'deactivate',
            'purchase_code' => get_option("{$optionName}_purchase_code")
        ),
        'user-agent' => 'WordPress/'.get_bloginfo('version').'; '.get_bloginfo('url')
    );
        
    wp_remote_post('https://daftplug.com/purchase-verify/', $params);
}

foreach ($options as $option) {
	delete_option("{$optionName}_{$option}");
}