Uninstall script for a plugin in Multisite
Searching inside all uninstall.php files that I have in my hard-drive, I’ve found two that had the function is_multisite(): User Role Editor and Add Code to Head. Both use a $wpdb loop. Simplified: <?php /** * Plugin Uninstall Procedure */ // Make sure that we are uninstalling if ( !defined( ‘WP_UNINSTALL_PLUGIN’ ) ) exit(); // … Read more