bp_nouveau_groups_invites_restriction_admin_nav( array $wp_admin_nav )

Group invites restriction settings Admin Bar navigation.

Description

Parameters

$wp_admin_nav

(Required) The list of settings admin subnav items.

Return

(array) The list of settings admin subnav items.

Source

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

function bp_nouveau_groups_invites_restriction_admin_nav( $wp_admin_nav ) {
	// Setup the logged in user variables.
	$settings_link = trailingslashit( bp_loggedin_user_domain() . bp_get_settings_slug() );

	// Add the "Group Invites" subnav item.
	$wp_admin_nav[] = array(
		'parent' => 'my-account-' . buddypress()->settings->id,
		'id'     => 'my-account-' . buddypress()->settings->id . '-invites',
		'title'  => __( 'Group Invites', 'buddyboss' ),
		'href'   => trailingslashit( $settings_link . 'invites/' ),
	);

	return $wp_admin_nav;
}

Changelog

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