feat: consolidate docs, backend/session infra, and settings updates

This commit is contained in:
Dwindi Ramadhana
2026-05-28 00:58:20 +07:00
parent 2424acf726
commit 44e06eed88
102 changed files with 35423 additions and 11181 deletions

View File

@@ -2,6 +2,10 @@
/**
* Uninstall plugin
*
* This file is kept for backward compatibility but the main uninstall
* logic is now handled via register_uninstall_hook() in wp-agentic-writer.php.
* The uninstall function there handles all cleanup tasks.
*
* @package WP_Agentic_Writer
*/
@@ -9,13 +13,9 @@ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
// Delete options.
delete_option( 'wp_agentic_writer_settings' );
// Delete post meta.
delete_post_meta_by_key( '_wpaw_plan' );
// Delete cost tracking table.
global $wpdb;
$table_name = $wpdb->prefix . 'wpaw_cost_tracking';
$wpdb->query( "DROP TABLE IF EXISTS $table_name" );
// Delegate to main uninstall function.
// The actual cleanup is now in wp_agentic_writer_uninstall() in wp-agentic-writer.php.
// This file exists for WordPress plugin directory compatibility.
if ( function_exists( 'wp_agentic_writer_uninstall' ) ) {
wp_agentic_writer_uninstall();
}