Inloggen
Aan de slag

Easy Digital Downloads Documentatie

Documentatie, Referentiemateriaal en Tutorials voor Easy Digital Downloads 

Adminlabels van het Download-posttype aanpassen

U kunt de labels van het Download-posttype eenvoudig wijzigen door een eenvoudige functie in de functions.php van uw thema, of een aangepaste plugin, te plaatsen. U wilt bijvoorbeeld misschien "Downloads" wijzigen in "Muziek", of misschien in "Producten".

Het onderstaande voorbeeld wijzigt Download(s) in Product(en):

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'),
        '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');
Was dit artikel nuttig?

Begin vandaag nog met verkopen!

Sluit u aan bij meer dan 50.000 slimme winkel eigenaren, en begin met de eenvoudigste manier om digitale producten te verkopen met WordPress.

Copyright © 2025 Sandhills Development, LLC

[universally_switcher]