[buddypress-trac] [BuddyPress] #2952: Filter user meta keys

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon May 16 18:30:44 UTC 2011


#2952: Filter user meta keys
--------------------------+------------------------------------
  Reporter:  wpmuguru     |      Owner:  boonebgorges
      Type:  enhancement  |     Status:  assigned
  Priority:  normal       |  Milestone:  1.3
 Component:  Core         |    Version:
Resolution:               |   Keywords:  has-patch dev-feedback
--------------------------+------------------------------------

Comment (by nacin):

 At a glance, I have two thoughts:

 One, rather than a full user meta keys object, just do: `update_user_meta(
 $user_id, $bp->prefix . 'some_key' ... )`.

 Two, take that a step further and abstract it:

 `$bp->update_user_meta( $user_id, 'some_key' ... )` or
 `bp_update_user_meta()`

 I think the current approach would make it more difficult for plugins to
 add new keys, when in reality you're just trying to adjust the prefix.

 I'm noticing now that some keys are not prefixed, and that really hurts
 chances for compatibility here.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/2952#comment:22>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list