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', ) ); }
Expand full source code Collapse full source code View on GitHub: addons/free/buddypress.php:120
Add your comment