BuddyPress::setup_subnav( $name,  $slug )

Description #

Setup sub nav.

Source #

File: addons/buddypress/buddypress.php

	public function setup_subnav( $name, $slug ) {
		bp_core_new_subnav_item(
			array(
				'name'            => $name,
				'slug'            => $slug,
				'parent_url'      => trailingslashit( bp_displayed_user_domain() . 'qa' ),
				'parent_slug'     => 'qa',
				'screen_function' => [ $this, 'ap_qa_page' ],
				'position'        => 10,
				'user_has_access' => 'all',
			)
		);
	}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment