BP_Core_Nav::__get( string $key )
Gets a nav item.
Description
Parameters
- $key
-
(Required) The requested nav slug.
Return
(mixed) The value corresponding to the requested nav item.
Source
File: bp-core/classes/class-bp-core-nav.php
public function __get( $key ) { if ( ! isset( $this->nav[ $this->object_id ][ $key ] ) ) { $this->nav[ $this->object_id ][ $key ] = null; } return $this->nav[ $this->object_id ][ $key ]; }
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.