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');

About Matt Whiteley

Matt has been building bespoke WordPress websites for over 10 years specializing in the Genesis Framework. He integrates Advanced Custom Fields heavily in all builds, especially with the new Gutenberg Block Editor, allowing clients to easily modify all aspects of the their website with ease.

He works with a wide variety of small businesses and agencies across the country providing development services as well as hosting and maintenance. When he isn't coding he enjoys spending time with his wife and two children, golfing and playing poker.