Tips on Customizing eCommerce Product Catalog Plugin for WordPress

How to Hide eCommerce Product Catalog for WordPress Admin Menus

function plt_hide_ecommerce_product_catalog_menus() {
	//Hide "Products".
	remove_menu_page('edit.php?post_type=al_product');
	//Hide "Products → Products".
	remove_submenu_page('edit.php?post_type=al_product', 'edit.php?post_type=al_product');
	//Hide "Products → Add New Product".
	remove_submenu_page('edit.php?post_type=al_product', 'post-new.php?post_type=al_product');
	//Hide "Products → Product Categories".
	remove_submenu_page('edit.php?post_type=al_product', 'edit-tags.php?taxonomy=al_product-cat&post_type=al_product');
	//Hide "Products → Settings".
	remove_submenu_page('edit.php?post_type=al_product', 'product-settings.php');
	//Hide "Products → System Status".
	remove_submenu_page('edit.php?post_type=al_product', 'system.php');
	//Hide "Products → Extensions".
	remove_submenu_page('edit.php?post_type=al_product', 'extensions.php');
}

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

Where do I put this code?

How to Hide the "Product Image" Meta Box

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

	//Hide the "Product Image" meta box.
	remove_meta_box('postimagediv', $screen->id, 'side');
}

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