-
Home
-
WP Recipe Maker
- Tips
function plt_hide_wp_recipe_maker_menus() {
//Hide "WP Recipe Maker".
remove_menu_page('wprecipemaker');
//Hide "WP Recipe Maker → Dashboard".
remove_submenu_page('wprecipemaker', 'wprecipemaker');
//Hide "WP Recipe Maker → Manage".
remove_submenu_page('wprecipemaker', 'wprm_manage');
//Hide "WP Recipe Maker → Reports".
remove_submenu_page('wprecipemaker', 'wprm_reports');
//Hide "WP Recipe Maker → Import Recipes".
remove_submenu_page('wprecipemaker', 'wprm_import_overview');
//Hide "WP Recipe Maker → Settings".
remove_submenu_page('wprecipemaker', 'wprm_settings');
//Hide "WP Recipe Maker → Template Editor".
remove_submenu_page('wprecipemaker', 'wprm_template_editor');
//Hide "WP Recipe Maker → Tools".
remove_submenu_page('wprecipemaker', 'wprm_tools');
//Hide "WP Recipe Maker → FAQ & Support".
remove_submenu_page('wprecipemaker', 'wprm_faq');
//Hide "WP Recipe Maker → Upgrade WPRM".
remove_submenu_page('wprecipemaker', 'wprm_addons');
}
add_action('admin_menu', 'plt_hide_wp_recipe_maker_menus', 100);
Where do I put this code?