Created
May 24, 2012 01:42
-
-
Save pippinsplugins/2778970 to your computer and use it in GitHub Desktop.
Modify the labels of the Downloads post type for Easy Digital Downloads
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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