I wish to exclude Subscribers from a person listing. My code is:
$customers = $wpdb->get_results( "SELECT display_name FROM $wpdb->customers ORDER BY display_name ASC" );
How can I alter that so subscribers are excluded from the listing?
I additionally appeared on the get_users operate in codex but it surely didn’t have an exclude by position parameter.
Edit: Or one other approach can be to get the outcomes filtered by functionality (one which subscribers would not have).