private function get_user_info( $what = 'name' ) {
		$current_user = wp_get_current_user();

		switch ( $what ) {
			case 'email':
				$out = $current_user->user_email;
				break;
			case 'name':
			default:
				$out = trim( $current_user->user_firstname . ' ' . $current_user->user_lastname );
				break;
		}

		return $out;
	}
private function get_user_info( $what = 'name' ) {
		$current_user = wp_get_current_user();

		switch ( $what ) {
			case 'email':
				$out = $current_user->user_email;
				break;
			case 'name':
			default:
				$out = trim( $current_user->user_firstname . ' ' . $current_user->user_lastname );
				break;
		}

		return $out;
	}
private function get_user_info ( $ what = 'name' ) { $ current_user = wp_get_current_user ( ) ; switch ( $ what ) { case 'email' : $ out = $ current_user -> user_email ; break ; case 'name' : default : $ out = trim ( $ current_user -> user_firstname . ' ' . $ current_user -> user_lastname ) ; break ; } return $ out ; }
Returns info about the current user

@param string $what What to retrieve, defaults to name.

@return string
Returns info about the current user