bp_customizer_nav_menus_set_item_types

Set BuddyPress item navs for the customizer.

Description

(array) bp_customizer_nav_menus_set_item_types( (array) $item_types = array() ); 

Returns (array)

$item_types An associative array structured for the customizer.

Parameters (1)

0. $item_types — Optional. (array) => array()
An associative array structured for the customizer.

Usage

  1. if ( !function_exists( 'bp_customizer_nav_menus_set_item_types' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-filters.php'; 
  3.  
  4. // An associative array structured for the customizer. 
  5. $item_types = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_customizer_nav_menus_set_item_types($item_types); 
  9.  

Defined (1)

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

/bp-core/bp-core-filters.php  
  1. function bp_customizer_nav_menus_set_item_types( $item_types = array() ) { 
  2. $item_types = array_merge( $item_types, array( 
  3. 'bp_loggedin_nav' => array( 
  4. 'title' => _x( 'BuddyPress (logged-in)', 'customizer menu section title', buddypress ),  
  5. 'type' => 'bp_nav',  
  6. 'object' => 'bp_loggedin_nav',  
  7. ),  
  8. 'bp_loggedout_nav' => array( 
  9. 'title' => _x( 'BuddyPress (logged-out)', 'customizer menu section title', buddypress ),  
  10. 'type' => 'bp_nav',  
  11. 'object' => 'bp_loggedout_nav',  
  12. ),  
  13. ) ); 
  14.  
  15. return $item_types;