BP_Members_Component::setup_profile_nav()

Set up a profile nav in case the xProfile component is not active and a front template is used.


Source Source

File: bp-members/classes/class-bp-members-component.php

	public function setup_profile_nav() {
		if ( empty( $this->main_nav ) || empty( $this->sub_nav ) ) {
			return;
		}

		// Add the main nav
		bp_core_new_nav_item( $this->main_nav, 'members' );

		// Add the sub nav item.
		bp_core_new_subnav_item( $this->sub_nav, 'members' );

		// Get the Avatar and cover image subnavs.
		$this->setup_xprofile_nav();
	}


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.