BP_Core_Nav::__set( string $key, mixed $value )
Sets a nav item.
Description
Parameters
- $key
-
(Required) The requested nav slug.
- $value
-
(Required) The value of the nav item.
Source
File: bp-core/classes/class-bp-core-nav.php
89 90 91 92 93 94 95 | public function __set( $key , $value ) { if ( is_array ( $value ) ) { $value [ 'primary' ] = true; } $this ->nav[ $this ->object_id ][ $key ] = new BP_Core_Nav_Item( $value ); } |
Changelog
Version | Description |
---|---|
BuddyPress 2.6.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.