bp_admin_custom_menu_order

Tell WordPress we have a custom menu order.

Description

bp_admin_custom_menu_order( (bool) $menu_order = false ); 

Parameters (1)

0. $menu_order — Optional. (bool) => false
The menu order.

Usage

  1. if ( !function_exists( 'bp_admin_custom_menu_order' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/admin/bp-core-admin-functions.php'; 
  3.  
  4. // The menu order. 
  5. $menu_order = false; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_admin_custom_menu_order($menu_order); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-core/admin/bp-core-admin-functions.php  
  1. function bp_admin_custom_menu_order( $menu_order = false ) { 
  2.  
  3. // Bail if user cannot see admin pages. 
  4. if ( ! bp_current_user_can( 'bp_moderate' ) ) { 
  5. return $menu_order; 
  6.  
  7. return true;