bp_nouveau_member_groups_widget_overrides( array $args = array() )
Filter the Groups widget to only keep the groups the displayed user is a member of.
Description
Parameters
- $args
-
(Optional) The Groups Template arguments.
Default value: array()
Return
(array) The Groups Template arguments.
Source
File: bp-templates/bp-nouveau/includes/members/functions.php
function bp_nouveau_member_groups_widget_overrides( $args = array() ) {
return array_merge( $args, array(
'user_id' => 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.