bp_nouveau_get_directory_nav_object()

Gets the directory nav item object.

Description

See also

Return

(array)

Source

File: bp-templates/bp-nouveau/includes/template-tags.php

	function bp_nouveau_get_directory_nav_object() {
		$nav_item = bp_nouveau()->current_nav_item;

		if ( ! $nav_item->component ) {
			return null;
		}

		return $nav_item->component;
	}

Changelog

Changelog
Version Description
BuddyPress 3.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.