BP_Core_Nav::__isset( string $key )
Checks whether a nav item is set.
Description
Parameters
- $key
-
(Required) The requested nav slug.
Return
(bool) True if the nav item is set, false otherwise.
Source
File: bp-core/classes/class-bp-core-nav.php
public function __isset( $key ) { return isset( $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.