get_avatar_comment_types

get_avatar_comment_types

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_avatar_comment_types') is found 1 times:

  • /wp-includes/link-template.php line 4346
    4342
    4343
    4344
    4345
    4346
    4347
    4348
    4349
    4350
    4351
    4352
         * @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 );
    }
     
    /**
     * Retrieves default data about the avatar.

See this hook used in plugins: