Using a shortcode to get User Emails by role as specified in the shortcode, need help to allow for multiple roles
If you’re trying to get users with all roles (in your example, administrator and author), your code looks like it should work. If you want users with any role (administrator or author, you’ll need to split the string in the role attribute into an array using explode(), and use the role__in array. Something like this … Read more