/** * Get number of volunteers for a expecific campaign * @param id $campaign */ static function get_volunteerNumber($campaign) { global $wpdb; $volunteerList = new self(array('campaign' => $campaign)); return count($wpdb->get_results($volunteerList->get_sql(), ARRAY_A)); }