• Good day, I dabble with php here and there, but I’m stuck. I want to make the query only contain the subscriber role and not sure how to write it. I have this to pull all role, obviously the default.

    // The Query
    		$user_query = new WP_User_Query( $args );
    	  	$total = $user_query->get_total();

    Please let me know what I’m missing for the role filter and how to write it. Thanks.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WP_User_Query PHP’ is closed to new replies.