-
Home
-
Food Business Gross Profit Calculator Plugin
- Tips
function plt_hide_food_business_gross_profit_calculator_menus() {
//Hide "Recipes".
remove_menu_page('edit.php?post_type=screcipe');
//Hide "Recipes → Recipes".
remove_submenu_page('edit.php?post_type=screcipe', 'edit.php?post_type=screcipe');
//Hide "Recipes → Add New".
remove_submenu_page('edit.php?post_type=screcipe', 'post-new.php?post_type=screcipe');
//Hide "Recipes → Categories".
remove_submenu_page('edit.php?post_type=screcipe', 'edit-tags.php?taxonomy=category&post_type=screcipe');
//Hide "Recipes → Tags".
remove_submenu_page('edit.php?post_type=screcipe', 'edit-tags.php?taxonomy=post_tag&post_type=screcipe');
//Hide "Recipes → Recipe Categories".
remove_submenu_page('edit.php?post_type=screcipe', 'edit-tags.php?taxonomy=screcipe_categories&post_type=screcipe');
//Hide "Recipes → How To Use".
remove_submenu_page('edit.php?post_type=screcipe', 'screcipe_info');
}
add_action('admin_menu', 'plt_hide_food_business_gross_profit_calculator_menus', 11);
Where do I put this code?