bp_group_show_no_groups_message()

Determine whether the displayed user has no groups.

Description

No longer used in BuddyPress.

Return

(bool) True if the displayed user has no groups, otherwise false.

Source

File: bp-groups/bp-groups-template.php

function bp_group_show_no_groups_message() {
	if ( !groups_total_groups_for_user( bp_displayed_user_id() ) ) {
		return true;
	}

	return false;
}

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.