bp_admin_custom_menu_order( bool $menu_order = false )

Tell WordPress we have a custom menu order.

Description

Parameters

$menu_order

(Optional) Menu order.

Default value: false

Return

(bool) Always true.

Source

File: bp-core/admin/bp-core-admin-functions.php

function bp_admin_custom_menu_order( $menu_order = false ) {

	// Bail if user cannot see admin pages.
	if ( ! bp_current_user_can( 'bp_moderate' ) ) {
		return $menu_order;
	}

	return true;
}

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.