bp_nouveau_groups_invites_restriction_admin_nav( array $wp_admin_nav )

Group invites restriction settings Admin Bar navigation.

Parameters Parameters


(array) (Required) The list of settings admin subnav items.

Top ↑

Return Return

(array) The list of settings admin subnav items.

Source 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_nouveau_get_component_slug( 'settings' ) );

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

	return $wp_admin_nav;

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.