public function filterAvatar( $url, $id_or_email, $args ) {
		if ( ! empty( $args['force_default'] ) ) {
			return $url;
		}

		if ( $this->default_avatar_id === 0 && empty( $this->avatar_user_meta_keys ) ) {
			return $url;
		}

		$id = $this->idOrEmailToId( $id_or_email );

		if ( is_numeric( $id ) ) {
			$filtered_url = $this->getAvatarUrl( (int) $id, $this->getSize( $args ) );
			if ( $filtered_url !== null ) {
				$url = $filtered_url;
			}
		}

		return $url;
	}
public function filterAvatar( $url, $id_or_email, $args ) {
		if ( ! empty( $args['force_default'] ) ) {
			return $url;
		}

		if ( $this->default_avatar_id === 0 && empty( $this->avatar_user_meta_keys ) ) {
			return $url;
		}

		$id = $this->idOrEmailToId( $id_or_email );

		if ( is_numeric( $id ) ) {
			$filtered_url = $this->getAvatarUrl( (int) $id, $this->getSize( $args ) );
			if ( $filtered_url !== null ) {
				$url = $filtered_url;
			}
		}

		return $url;
	}
public function filterAvatar ( $ url , $ id_or_email , $ args ) { if ( ! empty ( $ args [ 'force_default' ] ) ) { return $ url ; } if ( $ this -> default_avatar_id === 0 && empty ( $ this -> avatar_user_meta_keys ) ) { return $ url ; } $ id = $ this -> idOrEmailToId ( $ id_or_email ) ; if ( is_numeric ( $ id ) ) { $ filtered_url = $ this -> getAvatarUrl ( ( int ) $ id , $ this -> getSize ( $ args ) ) ; if ( $ filtered_url !== null ) { $ url = $ filtered_url ; } } return $ url ; }
Filter an avatar url based on the default avatar attachment id and registered meta keys.

@param  string         $url
@param  integer|string $id_or_email
@param  array          $args
@return string
Filter an avatar url based on the default avatar attachment id and registered meta keys .