Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi electrolund,
    I’m not sure that you are using the get_users function correctly.
    As far as I know, this function expects an array as a first parameter, not a string.

    Regards,
    Vasyl

    Thread Starter electrolund

    (@electrolund)

    Thanks for the reply, Vasyl! According to the codex, one of the valid args of get_users is ‘role’

    role – Limit the returned authors to the role specified.

    Example code on the function page:

    $blogusers = get_users('blog_id=1&orderby=nicename&role=subscriber');

    So it would be soooooo nice if your plugin could export the custom user role names. I hope that makes sense.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get_users with custom role?’ is closed to new replies.