WordPress at Your Fingertips
function is not described

is_avatar_comment_type() WP 5.1.0

Check if this comment type allows avatars to be retrieved.

Hooks from the function
Return

true|false. Whether the comment type is allowed for retrieving avatars.

Usage

is_avatar_comment_type( $comment_type );
$comment_type(string) (required)
Comment type to check.

Changelog

Since 5.1.0 Introduced.

Code of is_avatar_comment_type() WP 5.7.2

<?php
function is_avatar_comment_type( $comment_type ) {
	/**
	 * Filters the list of allowed comment types for retrieving avatars.
	 *
	 * @since 3.0.0
	 *
	 * @param array $types An array of content types. Default only contains 'comment'.
	 */
	$allowed_comment_types = apply_filters( 'get_avatar_comment_types', array( 'comment' ) );

	return in_array( $comment_type, (array) $allowed_comment_types, true );
}