BP_Core_BP_Options_Nav_BackCompat::offsetUnset( mixed $offset )
Unset a nav array value at the specified offset.
Description Description
Parameters Parameters
- $offset
-
(Required) Array offset.
Source 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.', 'buddypress' ), '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 Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |