bp_nouveau_groups_get_group_invites_setting( int $user_id )

Gets the displayed user group invites preferences

Parameters Parameters


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

Top ↑

Return Return

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

Source Source

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

function bp_nouveau_groups_get_group_invites_setting( $user_id = 0 ) {
	if ( ! $user_id ) {
		$user_id = bp_displayed_user_id();

	return (int) bp_get_user_meta( $user_id, '_bp_nouveau_restrict_invites_to_friends' );

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.