public static function get_instance() { if (!isset(self::$instance)) { self::$instance = new self(); } return self::$instance; }
function swa_get_blog_admin_id() { global $current_blog; $blog_id = $current_blog->blog_id; $users = SWA_Helper::get_admin_users_for_blog($blog_id); if (!empty($users)) { $users = $users[0]; } //just the first user return $users; }