WordPress.org

Support

Support » Plugins and Hacks » Advanced Access Manager » get_users with custom role?

get_users with custom role?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vasyltech

    @vasyl_m

    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

    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.
Skip to toolbar