[wp-trac] [WordPress Trac] #17924: Make Integrating Multiple Roles Per User Easier for Plugin Authors

WordPress Trac noreply at wordpress.org
Mon Mar 3 11:16:03 UTC 2014


#17924: Make Integrating Multiple Roles Per User Easier for Plugin Authors
-----------------------------+-----------------------------
 Reporter:  mobius5150       |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  Role/Capability  |     Version:  3.2
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------------

Comment (by landwire):

 Replying to [comment:41 nikolov.tmw]:

 Nikolov, that plugin works great for me. One thing though, as I am
 planning to use permalinks based on a users role at some point: Would it
 be possible to add the functionality to set the order of the roles or
 basically set a "main role" and "sub roles"? Basically making sure that
 the main role is always the first role in array. Or are there any better
 solutions to accomplish having "main role" and "sub roles"? Maybe with key
 value pairs for the role array?

 Not sure about array syntax, but basically:
 $role[('main' => 'coach'), ('sub' => 'player'), ('sub' => 'fan')] for a
 player coach for instance that is mainly a coach, but also player and fan.

 There might be better examples :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/17924#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list