Tips on Customizing Easy Digital Downloads

How to Hide Easy Digital Downloads Admin Menus

function plt_hide_easy_digital_downloads_menus() {
	//Hide "Downloads".
	remove_menu_page('edit.php?post_type=download');
	//Hide "Downloads → All Downloads".
	remove_submenu_page('edit.php?post_type=download', 'edit.php?post_type=download');
	//Hide "Downloads → Add New".
	remove_submenu_page('edit.php?post_type=download', 'post-new.php?post_type=download');
	//Hide "Downloads → Categories".
	remove_submenu_page('edit.php?post_type=download', 'edit-tags.php?taxonomy=download_category&post_type=download');
	//Hide "Downloads → Tags".
	remove_submenu_page('edit.php?post_type=download', 'edit-tags.php?taxonomy=download_tag&post_type=download');
	//Hide "Downloads → Payment History".
	remove_submenu_page('edit.php?post_type=download', 'edd-payment-history');
	//Hide "Downloads → Customers".
	remove_submenu_page('edit.php?post_type=download', 'edd-customers');
	//Hide "Downloads → Discount Codes".
	remove_submenu_page('edit.php?post_type=download', 'edd-discounts');
	//Hide "Downloads → Reports".
	remove_submenu_page('edit.php?post_type=download', 'edd-reports');
	//Hide "Downloads → Settings".
	remove_submenu_page('edit.php?post_type=download', 'edd-settings');
	//Hide "Downloads → Tools".
	remove_submenu_page('edit.php?post_type=download', 'edd-tools');
	//Hide "Downloads → Extensions".
	remove_submenu_page('edit.php?post_type=download', 'edd-addons');
}

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

Where do I put this code?

How to Hide Easy Digital Downloads Meta Boxes

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

	//Hide the "Download Prices" meta box.
	remove_meta_box('edd_product_prices', $screen->id, 'normal');
	//Hide the "Download Files" meta box.
	remove_meta_box('edd_product_files', $screen->id, 'normal');
	//Hide the "Download Notes" meta box.
	remove_meta_box('edd_product_notes', $screen->id, 'normal');
	//Hide the "Download Settings" meta box.
	remove_meta_box('edd_product_settings', $screen->id, 'side');
	//Hide the "Download Stats" meta box.
	remove_meta_box('edd_product_stats', $screen->id, 'side');
	//Hide the "Product Reviews" meta box.
	remove_meta_box('edd-reviews-status', $screen->id, 'side');
}

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

How to Hide the "Easy Digital Downloads Sales Summary" Dashboard Widget

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

	//Remove the "Easy Digital Downloads Sales Summary" widget.
	remove_meta_box('edd_dashboard_sales', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_easy_digital_downloads_dashboard_widgets', 20);