BP_Core_Nav::__set( string $key, mixed $value )

Sets a nav item.


Description Description


Parameters Parameters

$key

(Required) The requested nav slug.

$value

(Required) The value of the nav item.


Top ↑

Source Source

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

	public function __set( $key, $value ) {
		if ( is_array( $value ) ) {
			$value['primary'] = true;
		}

		$this->nav[ $this->object_id ][ $key ] = new BP_Core_Nav_Item( $value );
	}

Top ↑

Changelog 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.