get_col( "SELECT blog_id FROM $wpdb->blogs" ); $old_blogid = $wpdb->blogid; foreach ( $blogids as $uninstall_blog_id ) { switch_to_blog( $uninstall_blog_id ); relevanssi_uninstall_free(); restore_current_blog(); } } else { relevanssi_uninstall_free(); }