get_avatar_comment_types filter-hookWP 3.0.0

Filters the list of allowed comment types for retrieving avatars.

Usage

add_filter( 'get_avatar_comment_types', 'wp_kama_get_avatar_comment_types_filter' );

/**
 * Function for `get_avatar_comment_types` filter-hook.
 * 
 * @param array $types An array of content types.
 *
 * @return array
 */
function wp_kama_get_avatar_comment_types_filter( $types ){

	// filter...
	return $types;
}
$types(array)
An array of content types.
Default: only contains 'comment'

Changelog

Since 3.0.0 Introduced.

Where the hook is called

is_avatar_comment_type()
get_avatar_comment_types
wp-includes/link-template.php 4188
$allowed_comment_types = apply_filters( 'get_avatar_comment_types', array( 'comment' ) );

Where the hook is used in WordPress

Usage not found.