Support » Plugin: User Role Editor » Difference between using get_userdata in a plugin and in a shortcode

  • Why is there a difference between using get_userdata in a plugin-code (and do a print_r to a logfile) and in a shortcode (and output it to the content)

    The difference is in the caps and roles:

    In the plugin i get only the first role and in the shortcode i get the hole list, which is given by the ure plugin…

    Can any one help me, how to get the list of roles in the plugin too?

    thx

    https://wordpress.org/plugins/user-role-editor/

  • The topic ‘Difference between using get_userdata in a plugin and in a shortcode’ is closed to new replies.