[buddypress-trac] [BuddyPress Trac] #6286: Directories filtered by member roles
buddypress-trac
noreply at wordpress.org
Thu Apr 9 15:31:19 UTC 2015
#6286: Directories filtered by member roles
--------------------------+------------------
Reporter: sooskriszta | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.3
Component: API | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------
Comment (by boonebgorges):
In [changeset:"9723"]:
{{{
#!CommitTicketReference repository="" revision="9723"
Introduce member-type-specific Members directories.
The new 'has_directory' argument for `bp_register_member_type()` allows
developers to specify whether a list of members matching a given type
'foo'
should be available at `http://example.com/members/type/foo/`. A slug can
be
passed to 'has_directory' to customize the URL used for the member type's
directory.
Note that plugins registering member types must do so at the new hook
'bp_register_member_types' in order to be able to customize the
'has_directory'
value (from its default of `true`).
`bp_has_members()` automatically detects the presence of a member type in
a
URL. When no member type of the form `example.com/members/type/foo/` is
found,
URLs of the form `example.com/members/?member_type=foo` will be detected.
See #6286.
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6286#comment:25>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list