bp_nouveau_member_members_widget_overrides( array $args = array() )
Filter the Members widgets to only keep members of the displayed group.
Description
Parameters
- $args
-
(Optional) The Members Template arguments.
Default value: array()
Return
(array) The Members Template arguments.
Source
File: bp-templates/bp-nouveau/includes/members/functions.php
387 388 389 390 391 392 393 394 395 396 | function bp_nouveau_member_members_widget_overrides( $args = array () ) { // Do nothing for the friends widget if ( ! empty ( $args [ 'user_id' ] ) && (int) $args [ 'user_id' ] === (int) bp_displayed_user_id() ) { return $args ; } return array_merge ( $args , array ( 'include' => bp_displayed_user_id(), ) ); } |
Changelog
Version | Description |
---|---|
BuddyPress 3.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.