bp_forums_add_sub_menu_page_admin_menu()

Description

Source

File: bp-forums/admin.php

function bp_forums_add_sub_menu_page_admin_menu() {

	if ( is_multisite() && bp_is_network_activated() ) {
		$forum_url = 'edit.php?post_type=' . bbp_get_forum_post_type(); // buddyboss-settings
		// Add our screen.
		$hook = add_submenu_page( 'buddyboss-platform',
			__( 'Forums', 'buddyboss' ),
			__( 'Forums', 'buddyboss' ),
			'bbp_forums_admin',
			$forum_url,
			'' );
	}
}

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.