Tips on Customizing Lorem Carousel – Responsive Image Slider for WordPress

How to Hide Lorem Carousel Admin Menus

function plt_hide_lorem_carousel_menus() {
	//Hide the "Lorem Carousel" menu.
	remove_menu_page('edit.php?post_type=lorem_carousel');
	//Hide the "Lorem Carousel → All Carousels" menu.
	remove_submenu_page('edit.php?post_type=lorem_carousel', 'edit.php?post_type=lorem_carousel');
	//Hide the "Lorem Carousel → Add New Carousel" menu.
	remove_submenu_page('edit.php?post_type=lorem_carousel', 'post-new.php?post_type=lorem_carousel');
}

add_action('admin_menu', 'plt_hide_lorem_carousel_menus', 15);

Where do I put this code?

How to Hide Lorem Carousel Meta Boxes

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

	//Hide the "Upload Carousel Images" meta box.
	remove_meta_box('test_metabox', $screen->id, 'normal');
	//Hide the "Settings for this carousel" meta box.
	remove_meta_box('lc_settings', $screen->id, 'normal');
}

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