Skip to content

Instantly share code, notes, and snippets.

@JiveDig
Created May 9, 2013 19:41
Show Gist options
  • Save JiveDig/5550001 to your computer and use it in GitHub Desktop.
Save JiveDig/5550001 to your computer and use it in GitHub Desktop.
Easy Digital Downloads (EDD) - Rename downloads title to something else. Custom post type remains 'download'.
// Change labels to "Tracks"
add_filter('edd_download_labels', 'set_download_labels');
function set_download_labels($labels) {
$labels = array(
'name' => _x('Tracks', 'post type general name', 'your-domain'),
'singular_name' => _x('Track', 'post type singular name', 'your-domain'),
'add_new' => __('Add New', 'your-domain'),
'add_new_item' => __('Add New Track', 'your-domain'),
'edit_item' => __('Edit Track', 'your-domain'),
'new_item' => __('New Track', 'your-domain'),
'all_items' => __('All Tracks', 'your-domain'),
'view_item' => __('View Track', 'your-domain'),
'search_items' => __('Search Tracks', 'your-domain'),
'not_found' => __('No Tracks found', 'your-domain'),
'not_found_in_trash' => __('No Tracks found in Trash', 'your-domain'),
'parent_item_colon' => '',
'menu_name' => __('Tracks', 'your-domain')
);
return $labels;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment