BP_Core_BP_Nav_BackCompat::offsetGet( mixed $offset )
Get a value of the nav array at the specified offset.
Description
Parameters
- $offset
-
(Required) Array offset.
Return
Source
File: bp-core/classes/class-bp-core-bp-nav-backcompat.php
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | public function offsetGet( $offset ) { _doing_it_wrong( 'bp_nav' , __( 'The bp_nav and bp_options_nav globals should not be used directly and are deprecated. Please use the BuddyPress nav functions instead.' , 'buddyboss' ), '2.6.0' ); // if ( ! isset( $this->backcompat_nav[ $offset ] ) ) { $nav = $this ->get_nav( $offset ); if ( $nav && isset( $nav [ $offset ] ) ) { $this ->backcompat_nav[ $offset ] = new self( $nav [ $offset ] ); } // } return $this ->backcompat_nav[ $offset ]; } |
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.