'ids', 'number' => 0]); foreach ($bundle_site_ids as $bundle_site_id) { switch_to_blog((int) $bundle_site_id); bundle_uninstall_cleanup($bundle_drop_shared); restore_current_blog(); } unset($bundle_site_ids, $bundle_site_id); } else { bundle_uninstall_cleanup($bundle_drop_shared); } unset($bundle_drop_shared); // The PRO banner's dismissal is stored per user, so it belongs to the // plugin rather than to the site content. User meta is global, not // per-site, which is why this uses delete_metadata's \$delete_all rather // than a loop over the users of one blog. delete_metadata('user', 0, 'bundle_pro_banner_dismissed', '', true);