'ids', 'number' => 0]) as $tipping_site_id) { switch_to_blog((int) $tipping_site_id); tipping_uninstall_site(); restore_current_blog(); } unset($tipping_site_id); } else { tipping_uninstall_site(); } // 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, 'tipping_pro_banner_dismissed', '', true);