Tips on Customizing WP Ultimate Recipe

How to Hide WP Ultimate Recipe Admin Menus

function plt_hide_wp_ultimate_recipe_menus() {
	//Hide "Recipes".
	remove_menu_page('edit.php?post_type=recipe');
	//Hide "Recipes → Recipes".
	remove_submenu_page('edit.php?post_type=recipe', 'edit.php?post_type=recipe');
	//Hide "Recipes → Add New Recipe".
	remove_submenu_page('edit.php?post_type=recipe', 'post-new.php?post_type=recipe');
	//Hide "Recipes → Categories".
	remove_submenu_page('edit.php?post_type=recipe', 'edit-tags.php?taxonomy=category&post_type=recipe');
	//Hide "Recipes → Tags".
	remove_submenu_page('edit.php?post_type=recipe', 'edit-tags.php?taxonomy=post_tag&post_type=recipe');
	//Hide "Recipes → Ingredients".
	remove_submenu_page('edit.php?post_type=recipe', 'edit-tags.php?taxonomy=ingredient&post_type=recipe');
	//Hide "Recipes → Courses".
	remove_submenu_page('edit.php?post_type=recipe', 'edit-tags.php?taxonomy=course&post_type=recipe');
	//Hide "Recipes → Cuisines".
	remove_submenu_page('edit.php?post_type=recipe', 'edit-tags.php?taxonomy=cuisine&post_type=recipe');
	//Hide "Recipes → Keywords".
	remove_submenu_page('edit.php?post_type=recipe', 'edit-tags.php?taxonomy=wpurp_keyword&post_type=recipe');
	//Hide "Recipes → Settings".
	remove_submenu_page('edit.php?post_type=recipe', 'wpurp_admin');
	//Hide "Recipes → FAQ".
	remove_submenu_page('edit.php?post_type=recipe', 'wpurp_faq');
	//Hide "Recipes → ⚠ Warning".
	remove_submenu_page('edit.php?post_type=recipe', 'wpurp_warning');
}

add_action('admin_menu', 'plt_hide_wp_ultimate_recipe_menus', 1000);

Where do I put this code?

How to Hide the "Recipe" Meta Box

function plt_hide_wp_ultimate_recipe_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Recipe" meta box.
	remove_meta_box('recipe_meta_box', $screen->id, 'normal');
}

add_action('add_meta_boxes', 'plt_hide_wp_ultimate_recipe_metaboxes', 20);