bp_nouveau_groups_get_group_invites_setting( int $user_id )

Gets the displayed user group invites preferences

Description

Parameters

$user_id

(Required) The user ID to check group invites preference for.

Return

(int) Returns 1 if user chose to restrict to friends, 0 otherwise.

Source

File: bp-templates/bp-nouveau/includes/groups/template-tags.php

function bp_nouveau_groups_get_group_invites_setting() {
	return (int) bp_get_user_meta( bp_displayed_user_id(), '_bp_nouveau_restrict_invites_to_friends' );
}

Changelog

Changelog
Version Description
BuddyPress 4.4.0 BuddyPress 4.4.0
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.