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

apply_filters('get_avatar_comment_types') is found 1 times:

  • /wp-includes/link-template.php line 4346
    	 * @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: