[buddypress-trac] [BuddyPress Trac] #6356: Filtering the group invites list

buddypress-trac noreply at wordpress.org
Sat Apr 11 13:30:23 UTC 2015


#6356: Filtering the group invites list
--------------------------------+--------------------
 Reporter:  henry.wright        |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  2.3
Component:  Component - Groups  |     Version:  2.2.1
 Severity:  normal              |  Resolution:
 Keywords:                      |
--------------------------------+--------------------

Comment (by henry.wright):

 @hnla here's an example filter that would result in the screenshot I
 posted:


 {{{
 /**
  * Filter the list of potential friends that can be invited to the group.
  */
 function bptrac_filter_group_invite_list( $friends, $user_id, $group_id )
 {

         // Filter the friends array so that there's 0 friends available to
 invite.
         $friends = array();

         return $friends;
 }
 add_filter( 'bp_friends_get_invite_list',
 'bptrac_filter_group_invite_list', 10, 3 );
 }}}

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


More information about the buddypress-trac mailing list