WordPress.org

Ready to get started?Download WordPress

Forums

What's the code for usermeta to assign more than one role? (1 post)

  1. geoffe
    Member
    Posted 8 years ago #

    I know that the usermeta table will contain a value like
    a:1:{s:10:"subscriber";b:1;}
    if the user is set to the subscriber role and for the author role, it would look like this:
    a:1:{s:6:"author";b:1;}

    And I understand it is possible to group two roles to a user. But how is this done? I can't find the information anywhere.

Topic Closed

This topic has been closed to new replies.

About this Topic