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