/** * Create new user * * @param string * @param string * @param string must contain valid email address * @param int group id * @param Array * @return bool */ public function create_user($username, $password, $email, $group = 1, Array $profile_fields = array()) { $password = trim($password); $email = filter_var(trim($email), FILTER_VALIDATE_EMAIL); if (empty($username) or empty($password) or empt