Tips on Customizing affiliate-toolkit – WP Affiliate Plugin with Amazon

How to Hide affiliate-toolkit Admin Menus

function plt_hide_affiliate_toolkit_starter_menus() {
	//Hide "affiliate-toolkit".
	remove_menu_page('ATKP_affiliate_toolkit-plugin');
	//Hide "affiliate-toolkit → Shops".
	remove_submenu_page('ATKP_affiliate_toolkit-plugin', 'edit.php?post_type=atkp_shop');
	//Hide "affiliate-toolkit → Products".
	remove_submenu_page('ATKP_affiliate_toolkit-plugin', 'edit.php?post_type=atkp_product');
	//Hide "affiliate-toolkit → Lists".
	remove_submenu_page('ATKP_affiliate_toolkit-plugin', 'edit.php?post_type=atkp_list');
	//Hide "affiliate-toolkit → Product category".
	remove_submenu_page('ATKP_affiliate_toolkit-plugin', 'edit-tags.php?taxonomy=productcategory');
	//Hide "affiliate-toolkit → Queues".
	remove_submenu_page('ATKP_affiliate_toolkit-plugin', 'ATKP_viewqueue');
	//Hide "affiliate-toolkit → Templates".
	remove_submenu_page('ATKP_affiliate_toolkit-plugin', 'ATKP_viewtemplate');
	//Hide "affiliate-toolkit → Product import".
	remove_submenu_page('ATKP_affiliate_toolkit-plugin', 'atkp_bulkimport');
	//Hide "affiliate-toolkit → Shortcode Generator".
	remove_submenu_page('ATKP_affiliate_toolkit-plugin', 'ATKP_affiliate_toolkit-shortcodegenerator');
	//Hide "affiliate-toolkit → Tools".
	remove_submenu_page('ATKP_affiliate_toolkit-plugin', 'ATKP_affiliate_toolkit-tools');
	//Hide "affiliate-toolkit → Settings".
	remove_submenu_page('ATKP_affiliate_toolkit-plugin', 'ATKP_affiliate_toolkit-plugin');
	//Hide "affiliate-toolkit → Extensions".
	remove_submenu_page('ATKP_affiliate_toolkit-plugin', 'ATKP_affiliate_toolkit-Extensions');
}

add_action('admin_menu', 'plt_hide_affiliate_toolkit_starter_menus', 21);

Where do I put this code?

How to Hide affiliate-toolkit Meta Boxes

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

	//Hide the "affiliate-toolkit" meta box.
	remove_meta_box('ATKP_product_box', $screen->id, 'normal');
	//Hide the "Shop Information" meta box.
	remove_meta_box('atkp_shop_detail_box', $screen->id, 'normal');
	//Hide the "Queue History" meta box.
	remove_meta_box('atkp_shop_queue_box', $screen->id, 'normal');
	//Hide the "Copy Settings" meta box.
	remove_meta_box('atkp_shop_copy_settings_box', $screen->id, 'side');
	//Hide the "Filter Information" meta box.
	remove_meta_box('atkp_product_shop_box', $screen->id, 'normal');
	//Hide the "Products found" meta box.
	remove_meta_box('atkp_product_products_box', $screen->id, 'normal');
	//Hide the "Detailed information" meta box.
	remove_meta_box('atkp_product_detail_box', $screen->id, 'normal');
	//Hide the "Queue History" meta box.
	remove_meta_box('atkp_product_queue_box', $screen->id, 'normal');
	//Hide the "Shop Information" meta box.
	remove_meta_box('atkp_list_shop_box', $screen->id, 'normal');
	//Hide the "List Information" meta box.
	remove_meta_box('atkp_list_detail_box', $screen->id, 'normal');
	//Hide the "List Preview" meta box.
	remove_meta_box('atkp_list_preview_box', $screen->id, 'normal');
	//Hide the "Queue History" meta box.
	remove_meta_box('atkp_list_queue_box', $screen->id, 'normal');
	//Hide the "Template information" meta box.
	remove_meta_box('atkp_template_detail_box', $screen->id, 'normal');
	//Hide the "Template CSS" meta box.
	remove_meta_box('atkp_template_css_box', $screen->id, 'normal');
	//Hide the "Template preview and styling" meta box.
	remove_meta_box('atkp_template_detail_box_style', $screen->id, 'normal');
}

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