[buddypress-trac] [BuddyPress Trac] #6154: tie existing role to bp_register_member_type

buddypress-trac noreply at wordpress.org
Thu Jan 22 19:09:31 UTC 2015


#6154: tie existing role to bp_register_member_type
-------------------------------------+-----------------------------
 Reporter:  youmin                   |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Members                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-codex needs-patch  |
-------------------------------------+-----------------------------

Comment (by boonebgorges):

 >  so i am requesting for devs to dont let this awesome piece of code in
 bare bones.

 youmin - Your use case is very specific. The version of member types being
 introduced in 2.2 is intended to be simple. It's not possible or practical
 or wise to attempt to solve every possible problem in the first version of
 the feature.

 For the time being, there is a hook 'bp_set_member_type'. See the function
 https://buddypress.trac.wordpress.org/browser/trunk/src/bp-members/bp-
 members-functions.php#L2576. You can write your own brief function that
 will hook to this action, and set the appropriate WP role based on your
 requirements. Whether this is better or worse than the xprofile hacks
 you've alluded to is subject to interpretation; but it will only take
 about 6 lines of code to do it using the existing member type
 functionality, so IMO it's still worth implementing.

 >  and i also request you sir to please dont set the milestone for future
 release. at least provide a temporary solution.

 This is a volunteer-run project. If you have thoughts about the specifics
 of the implementation, please contribute. It's only through contributions
 that this issue will be prioritized.

 > first of all i dont wanna let users change their roles once they (roles)
 selected by members,

 https://buddypress.trac.wordpress.org/ticket/6145#comment:4

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6154#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list