Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,887
- Creating & Extending
- 25,913
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,404
- Miscellaneous
- 9,183
-
You need to learn the difference, in any coding lang, between strings and variables.
$excluded_roles = array('administrator','subscriber','customer');
$excluded_args = array(
'role__in' => $excluded_roles,
'fields' => 'ID',
);
$excluded_users = get_users( $excluded_args );
$excluded_users = implode(',', $excluded_users);