protected function idOrEmailToId( $id_or_email ) {
		if ( is_a( $id_or_email, WP_Comment::class ) ) {
			return intval( $id_or_email->user_id );
		}

		if ( ! is_numeric( $id_or_email ) ) {
			$user = get_user_by( 'email', $id_or_email );
			if ( $user ) {
				return intval( $user->ID );
			}
		}

		return strval( $id_or_email );
	}
protected function idOrEmailToId( $id_or_email ) {
		if ( is_a( $id_or_email, WP_Comment::class ) ) {
			return intval( $id_or_email->user_id );
		}

		if ( ! is_numeric( $id_or_email ) ) {
			$user = get_user_by( 'email', $id_or_email );
			if ( $user ) {
				return intval( $user->ID );
			}
		}

		return strval( $id_or_email );
	}
protected function idOrEmailToId ( $ id_or_email ) { if ( is_a ( $ id_or_email , WP_Comment :: class ) ) { return intval ( $ id_or_email -> user_id ) ; } if ( ! is_numeric ( $ id_or_email ) ) { $ user = get_user_by ( 'email' , $ id_or_email ) ; if ( $ user ) { return intval ( $ user -> ID ) ; } } return strval ( $ id_or_email ) ; }
Converts an id_or_email to an ID if possible.

@param  integer|string|WP_Comment $id_or_email
@return integer|string
Converts an id_or_email to an ID if possible .