bp_forums_add_admin_menu()
Register the Forums component admin screen.
Description
Source
File: bp-forums/admin.php
function bp_forums_add_admin_menu() {
if ( is_network_admin() && bp_is_network_activated() ) {
$forum_url = get_admin_url( bp_get_root_blog_id(), 'edit.php?post_type=' . bbp_get_forum_post_type() );
} else {
$forum_url = 'edit.php?post_type=' . bbp_get_forum_post_type();
}
// Add our screen.
add_submenu_page(
'buddyboss-platform',
'Forums',
'Forums',
'bbp_forums_admin',
$forum_url
);
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.0 | Introduced. |
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.