Modify CPT Labels for Easy Digital Downloads

Use the snippet below to modify the custom post type labels for Easy Digital Downloads to change them from Downloads to Donations (or whatever you’d like).

<?php
/*
 * Modify Download CPT Labels
 *
 * Change all labels on EDD "Downloads" CPT to Donations
 *
*/
function wd_set_download_labels($labels) {
	$labels = array(
		'name'                  => _x( 'Donations', 'post type general name', 'waller-creek' ),
		'singular_name'         => _x( 'Donation', 'post type singular name', 'waller-creek' ),
		'add_new'               => __( 'Add New', 'waller-creek' ),
		'add_new_item'          => __( 'Add New Donation', 'waller-creek' ),
		'edit_item'             => __( 'Edit Donation', 'waller-creek' ),
		'new_item'              => __( 'New Donation', 'waller-creek' ),
		'all_items'             => __( 'All Donations', 'waller-creek' ),
		'view_item'             => __( 'View Donation', 'waller-creek' ),
		'search_items'          => __( 'Search Donations', 'waller-creek' ),
		'not_found'             => __( 'No Donations found', 'waller-creek' ),
		'not_found_in_trash'    => __( 'No Donations found in Trash', 'waller-creek' ),
		'parent_item_colon'     => '',
		'menu_name'             => __( 'Donations', 'waller-creek' ),
		'featured_image'        => __( '%1$s Image', 'waller-creek' ),
		'set_featured_image'    => __( 'Set %1$s Image', 'waller-creek' ),
		'remove_featured_image' => __( 'Remove %1$s Image', 'waller-creek' ),
		'use_featured_image'    => __( 'Use as %1$s Image', 'waller-creek' ),
	);
	return $labels;
}
add_filter('edd_download_labels', 'wd_set_download_labels');