BP_Core_BP_Options_Nav_BackCompat::offsetUnset( mixed $offset )
Unset a nav array value at the specified offset.
Description
Parameters
- $offset
-
(Required) Array offset.
Source
File: bp-core/classes/class-bp-core-bp-options-nav-backcompat.php
public function offsetUnset( $offset ) {
_doing_it_wrong(
'bp_nav',
__( 'These globals should not be used directly and are deprecated. Please use the BuddyPress nav functions instead.', 'buddyboss' ),
'2.6.0'
);
$this->get_component_nav( $offset )->delete_nav( $offset, $this->get_parent_slug() );
// Clear the cached nav.
unset( $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.