• Resolved Edvard

    (@ecsanyi)


    I’m still on EDD 2.1.16 and plan to upgrade to EDD 3. However, I have these two little snippets that must work after upgrade.

    Can you check if these two functions will work correctly in EDD 3?

    function set_download_labels($labels) {
    	$labels = array(
    		'name' => _x('Premium Shop', 'post type general name', 'your-domain'),
    		'singular_name' => _x('Item', 'post type singular name', 'your-domain'),
    		'add_new' => __('Add New Item', 'your-domain'),
    		'add_new_item' => __('Add New Item', 'your-domain'),
    		'edit_item' => __('Edit Item', 'your-domain'),
    		'new_item' => __('New Item', 'your-domain'),
    		'all_items' => __('All Items', 'your-domain'),
    		'view_item' => __('View Item', 'your-domain'),
    		'search_items' => __('Search Premium Shop', 'your-domain'),
    		'not_found' =>  __('No Item Found', 'your-domain'),
    		'not_found_in_trash' => __('No Item Found in Trash', 'your-domain'), 
    		'parent_item_colon' => '',
    		'menu_name' => __('Premium Shop', 'your-domain'),
    		'featured_image'        => __( '%1$s Image', 'easy-digital-downloads' ),
    		'set_featured_image'    => __( 'Set %1$s Image', 'easy-digital-downloads' ),
    		'remove_featured_image' => __( 'Remove %1$s Image', 'easy-digital-downloads' ),
    		'use_featured_image'    => __( 'Use as %1$s Image', 'easy-digital-downloads' ),
    	);
    	return $labels;
    }
    add_filter('edd_download_labels', 'set_download_labels');

    and

    add_filter( 'edd_pre_add_to_cart_contents', '__return_false' );

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Status of these snippets in EDD 3.0’ is closed to new replies.