[buddypress-trac] [BuddyPress Trac] #6286: Directories filtered by member roles

buddypress-trac noreply at wordpress.org
Wed Apr 1 20:03:07 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:  has-patch     |
--------------------------+------------------

Comment (by r-a-y):

 Is it possible to do this without manipulating the
 `bp_core_set_uri_globals()` function?  Maybe as a hook to `'bp_screens'`?

 Something like:


 {{{
 function bp_members_set_member_type_screen() {
         if ( ! bp_is_members_component() ) {
                 return;
         }

         if ( bp_displayed_user_id() ) {
                 return;
         }

         // logic to set the member type directory args
         // if ( bp_is_current_action( MATCHES_A_MEMBER_TYPE ) ) {
         //add_filter( 'bp_after_has_members_args', 'blah' );

         // load template
         bp_core_load_template( 'members/index' );
 }
 add_action( 'bp_screens', 'bp_members_set_member_type_dir_screen' );
 }}}

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


More information about the buddypress-trac mailing list