
<?php
if (!defined('WPINC') || !defined('WP_UNINSTALL_PLUGIN')) exit;

// 清理插件选项
delete_option('acs_comment_settings');

// 清理其他自定义数据
global $wpdb;
$wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key LIKE '_acs_comment%'");



// 清理插件数据和选项
register_uninstall_hook(__FILE__, 'acs_uninstall');
function acs_uninstall() {
    // 删除所有自定义数据库表和选项
}


global $wpdb;
$wpdb->query("DELETE FROM $wpdb->options WHERE option_name LIKE '_transient_comment_stats_%'");
$wpdb->query("DELETE FROM $wpdb->options WHERE option_name LIKE '_transient_timeout_comment_stats_%'");



?>

