wpseek.com
A WordPress-centric search engine for devs and theme authors
is_avatar_comment_type › WordPress Function
Since5.1.0
Deprecatedn/a
› is_avatar_comment_type ( $comment_type )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
| Codex: |
Check if this comment type allows avatars to be retrieved.
Related Functions: get_comment_type, comment_type, _wp_batch_update_comment_type, is_comment_feed, is_nav_menu_item
Source
function is_avatar_comment_type( $comment_type ) {
/**
* Filters the list of allowed comment types for retrieving avatars.
*
* @since 3.0.0
*
* @since 6.9.0 The 'note' comment type was added.
*
* @param array $types An array of content types. Default contains 'comment' and 'note'.
*/
$allowed_comment_types = apply_filters( 'get_avatar_comment_types', array( 'comment', 'note' ) );
return in_array( $comment_type, (array) $allowed_comment_types, true );
}