BP_Core_BP_Nav_BackCompat::offsetUnset( mixed $offset )

Unset a nav array value at the specified offset.

Parameters Parameters


(mixed) (Required) Array offset.

Source Source

File: bp-core/classes/class-bp-core-bp-nav-backcompat.php

	public function offsetUnset( $offset ) {
			__( 'The bp_nav and bp_options_nav globals should not be used directly and are deprecated. Please use the BuddyPress nav functions instead.', 'buddypress' ),

		// For top-level nav items, the backcompat nav hasn't yet been initialized.
		if ( ! isset( $this->backcompat_nav[ $offset ] ) ) {
			buddypress()->members->nav->delete_nav( $offset );
			unset( $this->backcompat_nav[ $offset ] );

Top ↑

Changelog Changelog

Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.