-
Home
-
bbPress Voting
- Tips
How to Hide the "bbPress Voting" Admin Menu
function plt_hide_bbp_voting_menus() {
//Hide the "Settings → bbPress Voting" menu.
remove_submenu_page('options-general.php', 'bbp_voting');
}
add_action('admin_menu', 'plt_hide_bbp_voting_menus', 11);
Where do I put this code?
How to Hide the "bbPress Voting" Meta Box
function plt_hide_bbp_voting_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "bbPress Voting" meta box.
remove_meta_box('bbp_voting', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_bbp_voting_metaboxes', 20);