Support » Plugin: Ultimate Member - User Profile & Membership Plugin » Retrieving User Roles via Meta Key

  • Resolved jcardona1331


    Hi, I’ve been racking my brain on how to retrieve ALL of a user’s role using a meta key. I’m using the “MailChimp for WP” which syncs users meta via the meta keys. I’ve been using the ‘role’ key but it only retrieves the primary user role. Does UM store user roles under a single meta key by any chance?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The example below can retrieve user’s community role. Metakey ‘role_name’.

    <?php echo um_user(‘role_name’); ?>

    @calle81 i copied your code, but i don’t know where on my WordPress dashboard to paste it. Can you help please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.