[buddypress-trac] [BuddyPress Trac] #5192: User roles with differents profile fields
buddypress-trac
noreply at wordpress.org
Fri Jul 10 20:29:44 UTC 2015
#5192: User roles with differents profile fields
----------------------------------+------------------
Reporter: _DorsVenabili | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.4
Component: Component - XProfile | Version:
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------------+------------------
Comment (by boonebgorges):
Oh, one thing I forgot to mention in the above: Offereins had originally
used the 'hidden fields' hook to hide fields from users. This is a good
technique for a plugin, but I wanted something more direct for BP core. So
I'm filtering out the off-limits fields just after they're fetched in
`BP_XProfile_Group::get()`. As it stands, this technique (and Offereins's
technique, for that matter) will result in some database overhead during
`bp_has_profile()` queries. If the basic technique looks good to everyone,
I can add some cache priming that will minimize the overhead.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5192#comment:31>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list