-
Home
-
Virtue/Ascend/Pinnacle Toolkit
- Tips
function plt_hide_virtue_toolkit_menus() {
//Hide "Portfolio".
remove_menu_page('edit.php?post_type=portfolio');
//Hide "Portfolio → All Portfolio".
remove_submenu_page('edit.php?post_type=portfolio', 'edit.php?post_type=portfolio');
//Hide "Portfolio → Add New Portfolio Item".
remove_submenu_page('edit.php?post_type=portfolio', 'post-new.php?post_type=portfolio');
//Hide "Portfolio → Portfolio Type".
remove_submenu_page('edit.php?post_type=portfolio', 'edit-tags.php?taxonomy=portfolio-type&post_type=portfolio');
}
add_action('admin_menu', 'plt_hide_virtue_toolkit_menus', 15);
Where do I put this code?