[buddypress-trac] [BuddyPress Trac] #5657: Ability to add profile fields programmatically, without touching DB

buddypress-trac noreply at wordpress.org
Wed May 28 13:25:34 UTC 2014


#5657: Ability to add profile fields programmatically, without touching DB
----------------------------------------+------------------
 Reporter:  slaFFik                     |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  2.1
Component:  XProfile                    |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |
----------------------------------------+------------------
Changes (by boonebgorges):

 * keywords:   => needs-patch good-first-bug
 * milestone:  Awaiting Review => 2.1


Comment:

 Thanks, that does help.

 I think that a procedural wrapper is still the way to go here. It's more
 the "WordPress way", and is in keeping with functions like
 `bp_activity_get()` and `groups_get_groups()`. Something like
 `xprofile_get_groups()`, which would wrap the static class method and run
 the return value through `apply_filters()`. Then find the two or three
 places where we call this method internally, and use the procedural
 wrapper instead.

 This is an easy patch for someone who wants some props for 2.1 ;)

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


More information about the buddypress-trac mailing list