BP_Core_Nav::__construct( int $object_id )

Initializes the Nav belonging to the specified object.


Description Description


Parameters Parameters

$object_id

(Required) The item ID to build the nav for. Default is the displayed user ID.


Top ↑

Source Source

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

	public function __construct( $object_id = 0 ) {
		if ( empty( $object_id ) ) {
			$this->object_id = (int) bp_displayed_user_id();
		} else {
			$this->object_id = (int) $object_id;
		}

		$this->nav[ $this->object_id ] = array();
	}

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.