Tips on Customizing Testimonial – Customer Feedback, client testimonial, Review

How to Hide Testimonial Maker Admin Menus

function plt_hide_testimonial_maker_menus() {
	//Hide "Testimonial Maker".
	remove_menu_page('edit.php?post_type=testimonial-maker');
	//Hide "Testimonial Maker → All Testimonial".
	remove_submenu_page('edit.php?post_type=testimonial-maker', 'edit.php?post_type=testimonial-maker');
	//Hide "Testimonial Maker → Add New Testimonial".
	remove_submenu_page('edit.php?post_type=testimonial-maker', 'post-new.php?post_type=testimonial-maker');
	//Hide "Testimonial Maker → Testimonial Setting".
	remove_submenu_page('edit.php?post_type=testimonial-maker', 'tmonial-setting-page');
	//Hide "Testimonial Maker → Featured Plugin".
	remove_submenu_page('edit.php?post_type=testimonial-maker', 'tmonial-featured-page');
}

add_action('admin_menu', 'plt_hide_testimonial_maker_menus', 102);

Where do I put this code?

How to Hide the "Add Client detail" Meta Box

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

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

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