Tips on Customizing WP INCI

How to Hide WP INCI Admin Menus

function plt_hide_wp_inci_menus() {
	//Hide "Settings → WP INCI".
	remove_submenu_page('options-general.php', 'wi_settings');

	//Hide "Ingredients".
	remove_menu_page('edit.php?post_type=ingredient');
	//Hide "Ingredients → All Ingredients".
	remove_submenu_page('edit.php?post_type=ingredient', 'edit.php?post_type=ingredient');
	//Hide "Ingredients → Add New Ingredient".
	remove_submenu_page('edit.php?post_type=ingredient', 'post-new.php?post_type=ingredient');
	//Hide "Ingredients → Functions".
	remove_submenu_page('edit.php?post_type=ingredient', 'edit-tags.php?taxonomy=functions&post_type=ingredient');
	//Hide "Ingredients → Sources".
	remove_submenu_page('edit.php?post_type=ingredient', 'edit-tags.php?taxonomy=source&post_type=ingredient');

	//Hide "Products".
	remove_menu_page('edit.php?post_type=product');
	//Hide "Products → All Products".
	remove_submenu_page('edit.php?post_type=product', 'edit.php?post_type=product');
	//Hide "Products → Add New Product".
	remove_submenu_page('edit.php?post_type=product', 'post-new.php?post_type=product');
	//Hide "Products → Brands".
	remove_submenu_page('edit.php?post_type=product', 'edit-tags.php?taxonomy=brand&post_type=product');
}

add_action('admin_menu', 'plt_hide_wp_inci_menus', 11);

Where do I put this code?

How to Hide WP INCI Meta Boxes

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

	//Hide the "Ingredients" meta box.
	remove_meta_box('ingredients_search_ajax', $screen->id, 'normal');
	//Hide the "May Contain" meta box.
	remove_meta_box('may_contain_search_ajax', $screen->id, 'normal');
	//Hide the "Brand" meta box.
	remove_meta_box('brand_box', $screen->id, 'side');
	//Hide the "INCI" meta box.
	remove_meta_box('inci', $screen->id, 'side');
}

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