BuddyPress::setup_subnav( string $name, string $slug )

Description #

Setup sub nav.

Parameters #

  • $name
    string (Required) Name.
  • $slug
    string (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',
			)
		);
	}

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