bp_nouveau_member_members_widget_overrides( array $args = array() )

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


Description Description


Parameters Parameters

$args

(Optional) The Members Template arguments.

Default value: array()


Top ↑

Return Return

(array) The Members Template arguments.


Top ↑

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

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.