Tips on Customizing Testimonial Rotator

How to Hide Testimonial Rotator Admin Menus

function plt_hide_testimonial_rotator_menus() {
	//Hide "Testimonials".
	remove_menu_page('edit.php?post_type=testimonial');
	//Hide "Testimonials → All Testimonials".
	remove_submenu_page('edit.php?post_type=testimonial', 'edit.php?post_type=testimonial');
	//Hide "Testimonials → Add New".
	remove_submenu_page('edit.php?post_type=testimonial', 'post-new.php?post_type=testimonial');
	//Hide "Testimonials → All Rotators".
	remove_submenu_page('edit.php?post_type=testimonial', 'edit.php?post_type=testimonial_rotator');
	//Hide "Testimonials → Add Rotator".
	remove_submenu_page('edit.php?post_type=testimonial', 'post-new.php?post_type=testimonial_rotator');
	//Hide "Testimonials → Settings".
	remove_submenu_page('edit.php?post_type=testimonial', 'testimonial-rotator');
}

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

Where do I put this code?

How to Hide Testimonial Rotator Meta Boxes

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

	//Hide the "Testimonial Options" meta box.
	remove_meta_box('testimonial_rotator_metabox_select', $screen->id, 'normal');
	//Hide the "Testimonial Image" meta box.
	remove_meta_box('postimagediv', $screen->id, 'normal');
	//Hide the "Testimonial Order" meta box.
	remove_meta_box('pageparentdiv', $screen->id, 'normal');
	//Hide the "Rotator Options" meta box.
	remove_meta_box('testimonial_rotator_metabox_effects', $screen->id, 'normal');
}

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