Tips on Customizing Cost Calculator & Cost Estimation

How to Hide Cost Calculator & Cost Estimation Admin Menus

function plt_hide_cost_calculator_cost_estimation_menus() {
	//Hide "Calculation Forms".
	remove_menu_page('edit.php?post_type=calculation_forms');
	//Hide "Calculation Forms → Calculation Forms".
	remove_submenu_page('edit.php?post_type=calculation_forms', 'edit.php?post_type=calculation_forms');
	//Hide "Calculation Forms → Add Post".
	remove_submenu_page('edit.php?post_type=calculation_forms', 'post-new.php?post_type=calculation_forms');
	//Hide "Calculation Forms → Coupons".
	remove_submenu_page('edit.php?post_type=calculation_forms', 'edit.php?post_type=cf_coupon');
	//Hide "Calculation Forms → Entries".
	remove_submenu_page('edit.php?post_type=calculation_forms', 'edit.php?post_type=cf_submissions');
	//Hide "Calculation Forms → Settings".
	remove_submenu_page('edit.php?post_type=calculation_forms', 'calculation-forms-settings');
	//Hide "Calculation Forms → Add-ons".
	remove_submenu_page('edit.php?post_type=calculation_forms', 'calculation-forms-add-ons');
}

add_action('admin_menu', 'plt_hide_cost_calculator_cost_estimation_menus', 10000);

Where do I put this code?

How to Hide Cost Calculator & Cost Estimation Meta Boxes

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

	//Hide the "Coupons" meta box.
	remove_meta_box('cf_coupon_data', $screen->id, 'normal');
	//Hide the "Import/Export Form" meta box.
	remove_meta_box('form-builder-import-export', $screen->id, 'side');
	//Hide the "Builder Form" meta box.
	remove_meta_box('form-builder-main', $screen->id, 'normal');
	//Hide the "Datas" meta box.
	remove_meta_box('cf_submissions_data', $screen->id, 'normal');
	//Hide the "PDF" meta box.
	remove_meta_box('cf_pdf', $screen->id, 'side');
}

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