[buddypress-trac] [BuddyPress Trac] #5192: User roles with differents profile fields
buddypress-trac
noreply at wordpress.org
Tue Jul 21 14:00:39 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):
In [changeset:"10022"]:
{{{
#!CommitTicketReference repository="" revision="10022"
Allow xProfile fields to be restricted to users belonging to one or more
member types.
A new metabox on the profile field edit panel allows the administrator to
select the member types to which the field is applicable. Admins can also
choose to have a field apply to users who do not belong to any member
type.
Information about a field's member type associations is displayed on the
Users > Profile Fields page, alongside each field name.
During registration, the only fields that are displayed are those that are
unrestricted - that is, those available to all users, regardless of member
type
(or lack thereof).
This changeset introduces a number of new methods on `BP_XProfile_Field`
that
developers should use to manipulate member type information:
`get_member_types()`, `set_member_types()`, and the static
`get_fields_for_member_type()`. In addition to member types that have been
explicitly registered, 'null' is a pseudo-type representing users who do
not
belong to a member type.
This changeset introduces a blacklist of illegal member type names. By
default,
the blacklist includes 'any', 'null', and '_none'. Use the
'bp_member_type_illegal_names' filter to add names to the blacklist.
Props Offereins, boonebgorges, tanner m, imath.
See #5192.
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5192#comment:55>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list