bp_customizer_nav_menus_set_item_types( array $item_types = array() )
Set BuddyPress item navs for the customizer.
Description
Parameters
- $item_types
-
(Optional) An associative array structured for the customizer.
Default value: array()
Return
(array) $item_types An associative array structured for the customizer.
Source
File: bp-core/bp-core-filters.php
function bp_customizer_nav_menus_set_item_types( $item_types = array() ) { $item_types = array_merge( $item_types, array( 'bp_loggedin_nav' => array( 'title' => __( 'BuddyPress (logged-in)', 'buddyboss' ), 'type' => 'bp_nav', 'object' => 'bp_loggedin_nav', ), 'bp_loggedout_nav' => array( 'title' => __( 'BuddyPress (logged-out)', 'buddyboss' ), 'type' => 'bp_nav', 'object' => 'bp_loggedout_nav', ), ) ); return $item_types; }
Changelog
Version | Description |
---|---|
BuddyPress 2.3.3 | 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.