wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
is_avatar_comment_type › WordPress Function
Da5.1.0
Deprecaton/a
› is_avatar_comment_type ( $comment_type )
| Parametri: |
|
| Ritorna: |
|
| Definito a: |
|
| Codex: |
Check if this comment type allows avatars to be retrieved.
Funzioni correlate: get_comment_type, comment_type, _wp_batch_update_comment_type, is_comment_feed, get_comment_date
Sorgenti
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.
* @since 7.2.0 The 'reaction' comment type was added.
*
* @param array $types An array of content types. Default contains 'comment', 'note',
* and 'reaction'.
*/
$allowed_comment_types = apply_filters( 'get_avatar_comment_types', array( 'comment', 'note', 'reaction' ) );
return in_array( $comment_type, (array) $allowed_comment_types, true );
}