BP_Core_Nav::__get( string $key )

Gets a nav item.


Description Description


Parameters Parameters

$key

(Required) The requested nav slug.


Top ↑

Return Return

(mixed) The value corresponding to the requested nav item.


Top ↑

Source Source

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

	public function __get( $key ) {
		if ( ! isset( $this->nav[ $this->object_id ][ $key ] ) ) {
			$this->nav[ $this->object_id ][ $key ] = null;
		}

		return $this->nav[ $this->object_id ][ $key ];
	}

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.