W3cubDocs

/WordPress

apply_filters( ‘get_avatar_comment_types’, array $types )

Filters the list of allowed comment types for retrieving avatars.

Parameters

$typesarray
An array of content types. Default only contains 'comment'.

Source

$allowed_comment_types = apply_filters( 'get_avatar_comment_types', array( 'comment' ) );

Changelog

Version Description
3.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_avatar_comment_types