-
Home
-
bbPress
- Tips
function plt_hide_bbpress_menus() {
//Hide "Tools → Forums".
remove_submenu_page('tools.php', 'bbp-repair');
//Hide "Settings → Forums".
remove_submenu_page('options-general.php', 'bbpress');
//Hide "Forums".
remove_menu_page('edit.php?post_type=forum');
//Hide "Forums → All Forums".
remove_submenu_page('edit.php?post_type=forum', 'edit.php?post_type=forum');
//Hide "Forums → Create New Forum".
remove_submenu_page('edit.php?post_type=forum', 'post-new.php?post_type=forum');
//Hide "Topics".
remove_menu_page('edit.php?post_type=topic');
//Hide "Topics → All Topics".
remove_submenu_page('edit.php?post_type=topic', 'edit.php?post_type=topic');
//Hide "Topics → Create New Topic".
remove_submenu_page('edit.php?post_type=topic', 'post-new.php?post_type=topic');
//Hide "Topics → Topic Tags".
remove_submenu_page('edit.php?post_type=topic', 'edit-tags.php?taxonomy=topic-tag&post_type=topic');
//Hide "Replies".
remove_menu_page('edit.php?post_type=reply');
//Hide "Replies → All Replies".
remove_submenu_page('edit.php?post_type=reply', 'edit.php?post_type=reply');
//Hide "Replies → Create New Reply".
remove_submenu_page('edit.php?post_type=reply', 'post-new.php?post_type=reply');
}
add_action('admin_menu', 'plt_hide_bbpress_menus', 11);
Where do I put this code?