wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



is_avatar_comment_type › WordPress Function

Depuis5.1.0
Dépréciéen/a
is_avatar_comment_type ( $comment_type )
Paramètres:
  • (string) $comment_type Comment type to check.
    Requis: Oui
Retourne:
  • (bool) Whether the comment type is allowed for retrieving avatars.
Défini(e) dans:
Codex:

Check if this comment type allows avatars to be retrieved.



Source

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 );
}