<?php
/**
 * Uninstall KDS & Report for Orderable Pro
 */

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

// Delete options
$pro_options = array(
    'kdsamref_pro_license_key',
    'kdsamref_pro_license_status',
);
foreach ($pro_options as $opt) {
    delete_option($opt);
    delete_site_option($opt);
}

// Clear scheduled hooks
wp_clear_scheduled_hook('kdsamref_pro_hourly_license_check');

// Delete transients
delete_transient('kdsamref_pro_license_status');