You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// if uninstall.php is not called by WordPress, dieif ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
die;
}
$option_name = 'wporg_option';
delete_option( $option_name );
// for site options in Multisitedelete_site_option( $option_name );
// drop a custom database tableglobal$wpdb;
$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}mytable" );
In Multisite, looping through all blogs to delete options can be very resource intensive.
Designs
Shouldn't be to much effort, if the existing & related methods can be re-used and we don't forget about the transients in #680
It would be good to list all the data that needs to be removed, so @bluecollarcoders knows what the scope is. I'll look to get a list of everything some time this week and post it to the ticket. Thx!
Is your enhancement related to a problem? Please describe.
Not that I want anybody to uninstall GatherPress, but people should be able to do that without any worries.
Following WordPress best-practices for uninstallation, GatherPress should have something like this somewhere.
Designs
Shouldn't be to much effort, if the existing & related methods can be re-used and we don't forget about the transients in #680
gatherpress/includes/core/classes/class-setup.php
Lines 196 to 198 in 4942ce8
and
gatherpress/includes/core/classes/class-setup.php
Lines 307 to 314 in 4942ce8
Describe alternatives you've considered
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: