BuddyPress::setup_subnav( string $name, string $slug )
Description #
Setup sub nav.
Parameters #
- $namestring (Required) Name.
- $slugstring (Required) Slug.
Source #
File: addons/buddypress/buddypress.php
public function setup_subnav( $name, $slug ) { bp_core_new_subnav_item( array( 'name' => $name, 'slug' => $slug, 'parent_url' => user_trailingslashit( bp_displayed_user_domain() . 'qa' ), 'parent_slug' => 'qa', 'screen_function' => array( $this, 'ap_qa_page' ), 'position' => 10, 'user_has_access' => 'all', ) ); }
Expand full source code Collapse full source code View on GitHub: addons/buddypress/buddypress.php:139
Add your comment