bp_groups_admin_menu_order( array $custom_menus = array() )

Add groups component to custom menus array.

Description

This ensures that the Groups menu item appears in the proper order on the main Dashboard menu.

Parameters

$custom_menus

(Optional) Array of BP top-level menu items.

Default value: array()

Return

(array) Menu item array, with Groups added.

Source

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

function bp_groups_admin_menu_order( $custom_menus = array() ) {
	array_push( $custom_menus, 'bp-groups' );
	return $custom_menus;
}

Changelog

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