wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
is_avatar_comment_type › WordPress Function
Desde5.1.0
Obsoleton/a
› is_avatar_comment_type ( $comment_type )
Parâmetros: |
|
Retorna: |
|
Definido em: |
|
Codex: |
Check if this comment type allows avatars to be retrieved.
Funções relacionadas: get_comment_type, comment_type, _wp_batch_update_comment_type, is_comment_feed, get_comment_date
Fonte
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 ); }