public function get( $id_email_or_login ) {

		if ( is_numeric( $id_email_or_login ) ) {
			$user = get_user_by( 'id', $id_email_or_login );
		} elseif ( is_email( $id_email_or_login ) ) {
			$user = get_user_by( 'email', $id_email_or_login );
			// Logins can be emails
			if ( ! $user ) {
				$user = get_user_by( 'login', $id_email_or_login );
			}
		} else {
			$user = get_user_by( 'login', $id_email_or_login );
		}

		return $user;
	}
public function get( $id_email_or_login ) {

		if ( is_numeric( $id_email_or_login ) ) {
			$user = get_user_by( 'id', $id_email_or_login );
		} elseif ( is_email( $id_email_or_login ) ) {
			$user = get_user_by( 'email', $id_email_or_login );
			// Logins can be emails
			if ( ! $user ) {
				$user = get_user_by( 'login', $id_email_or_login );
			}
		} else {
			$user = get_user_by( 'login', $id_email_or_login );
		}

		return $user;
	}
public function get ( $ id_email_or_login ) { if ( is_numeric ( $ id_email_or_login ) ) { $ user = get_user_by ( 'id' , $ id_email_or_login ) ; } elseif ( is_email ( $ id_email_or_login ) ) { $ user = get_user_by ( 'email' , $ id_email_or_login ) ; // Logins can be emails if ( ! $ user ) { $ user = get_user_by ( 'login' , $ id_email_or_login ) ; } } else { $ user = get_user_by ( 'login' , $ id_email_or_login ) ; } return $ user ; }
Get a user object by one of its identifying attributes

@param mixed $id_email_or_login
@return WP_User|false
Get a user object by one of its identifying attributes