Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created May 24, 2012 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pippinsplugins/2778970 to your computer and use it in GitHub Desktop.
Save pippinsplugins/2778970 to your computer and use it in GitHub Desktop.
Modify the labels of the Downloads post type for Easy Digital Downloads
<?php
function set_download_labels($labels) {
$labels = array(
'name' => _x('Products', 'post type general name', 'your-domain'),
'singular_name' => _x('Product', 'post type singular name', 'your-domain'),
'add_new' => __('Add New', 'your-domain'),
'add_new_item' => __('Add New Product', 'your-domain'),
'edit_item' => __('Edit Product', 'your-domain'),
'new_item' => __('New Product', 'your-domain'),
'all_items' => __('All Products', 'your-domain'),
'view_item' => __('View Product', 'your-domain'),
'search_items' => __('Search Products', 'your-domain'),
'not_found' => __('No Products found', 'your-domain'),
'not_found_in_trash' => __('No Products found in Trash', 'your-domain'),
'parent_item_colon' => '',
'menu_name' => __('Products', 'your-domain')
);
return $labels;
}
add_filter('edd_download_labels', 'set_download_labels');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment