Use for more than one additional role

[ad_1]

I’ve been using this code to display an additional logged on user role.
Is there a way to modify this so I can display 2 additional roles besides the Administrator. For example “Subscribers” and “Editors”

function my_auli_get_role__in( $role__in ) {
	$role__in[] = 'Subscriber'; // custom role, first character capitalized
	return $role__in;
}
add_filter( 'auli_get_role__in', 'my_auli_get_role__in' );

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer