[buddypress-trac] [BuddyPress Trac] #6138: Member Types API: bp_has_user_member_type()

buddypress-trac noreply at wordpress.org
Mon Jan 19 07:25:35 UTC 2015


#6138: Member Types API: bp_has_user_member_type()
-------------------------+----------------------------------------
 Reporter:  Offereins    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Members      |    Version:
 Severity:  normal       |   Keywords:  has-patch needs-unit-tests
-------------------------+----------------------------------------
 Since #6006 the Member Types API came available for developers. Since I'm
 trying to use this set of functions in conditionals for the current user,
 I propose an additional core function that checks for a (current) user's
 member types. See patch for an implementation for single or a set of
 member type names.

 PS. I'm not familiar with unit testing yet, so I hope someone can jump in
 on that.
 PPS. If I'm not mistaken, member types may be registered with
 ''label''-like type names, i.e. they are not sanitized in any way within
 BP's functions. Hence checking for member types cannot be done with
 ''slug''-like type names

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6138>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list