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.
Description Description
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' ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |