Restore to commit 74e578279624c6045ca440a3459ebfa1f8d54191
This commit is contained in:
19
chat/templates/Membership/uninstall.php
Normal file
19
chat/templates/Membership/uninstall.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* Uninstall script for PC Membership Plugin.
|
||||
* Removes custom tables created by the plugin.
|
||||
*/
|
||||
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
||||
exit; // Prevent direct access.
|
||||
}
|
||||
global $wpdb;
|
||||
$tables = array(
|
||||
$wpdb->prefix . 'pc_membership_plans',
|
||||
$wpdb->prefix . 'pc_membership_subscriptions',
|
||||
);
|
||||
foreach ( $tables as $table ) {
|
||||
$wpdb->query( "DROP TABLE IF EXISTS `$table`" );
|
||||
}
|
||||
// Option cleanup.
|
||||
delete_option( 'pc_membership_options' );
|
||||
?>
|
||||
Reference in New Issue
Block a user