<?php
// If uninstall not called from WordPress, then exit
if (!defined('WP_UNINSTALL_PLUGIN')) {
    exit;
}

// حذف آپشن‌های پلاگین
delete_option('proforma_invoice_data');
delete_option('proforma_settings');

// حذف داده‌های کاربران
global $wpdb;
$wpdb->query("DELETE FROM {$wpdb->usermeta} WHERE meta_key LIKE 'proforma_%'");