first commit all files
This commit is contained in:
21
uninstall.php
Normal file
21
uninstall.php
Normal 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" );
|
||||
Reference in New Issue
Block a user