get_avatar_comment_types хук-фильтрWP 3.0.0

Filters the list of allowed comment types for retrieving avatars.

Использование

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(массив)
An array of content types.
По умолчанию: contains 'comment' and 'note'

Список изменений

С версии 3.0.0 Введена.
С версии 6.9.0 The 'note' comment type was added.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.