AnsPress_BP_Hooks::setup_subnav( $name,  $slug )

Description #

Setup sub nav.

Source #

File: addons/free/buddypress.php

	public static 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' => [ __CLASS__, 'ap_qa_page' ],
			'position'        => 10,
			'user_has_access' => 'all',
		) );
	}

Leave a Reply

Your email address will not be published.

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

Add your comment