bp_nouveau_member_members_widget_overrides( array $args = array() )

Filter the Members widgets to only keep members of the displayed group.

Parameters Parameters


(array) (Optional) The Members Template arguments.

Default value: array()

Top ↑

Return Return

(array) The Members Template arguments.

Source Source

File: bp-templates/bp-nouveau/includes/members/functions.php

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(),
	) );

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.