first commit all files

This commit is contained in:
dwindown
2026-01-28 00:26:00 +07:00
parent 65dd207a74
commit 97426d5ab1
72 changed files with 91484 additions and 0 deletions

21
uninstall.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
/**
* Uninstall plugin
*
* @package WP_Agentic_Writer
*/
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" );