Tips on Customizing Accordion Box

How to Hide Accordion Box Admin Menus

function plt_hide_accordion_box_menus() {
	//Hide the "Accordion Box" menu.
	remove_menu_page('edit.php?post_type=cdlzr_accrodion_box');
	//Hide the "Accordion Box → All Accordions Box" menu.
	remove_submenu_page('edit.php?post_type=cdlzr_accrodion_box', 'edit.php?post_type=cdlzr_accrodion_box');
	//Hide the "Accordion Box → Add Accordion Box" menu.
	remove_submenu_page('edit.php?post_type=cdlzr_accrodion_box', 'post-new.php?post_type=cdlzr_accrodion_box');
}

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

Where do I put this code?

How to Hide Accordion Box Meta Boxes

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

	//Hide the "Add Accordion Box" meta box.
	remove_meta_box('cdlzr-acc-box', $screen->id, 'normal');
	//Hide the "Accordion Box Shorcode" meta box.
	remove_meta_box('cdlzr-acc-scode', $screen->id, 'side');
	//Hide the "Accordion Box Title" meta box.
	remove_meta_box('cdlzr-acc-settings', $screen->id, 'side');
	//Hide the "Template Layout" meta box.
	remove_meta_box('cdlzr-acc-template-setting', $screen->id, 'side');
}

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