• Hello,

    I have question related to adding extra taxonomy to EDD. I done few things so I want to know if I done it correctly and if there will be any negative effect when I will do update of plugin.

    First I created in my theme folder extra taxonomy since my theme supports edd, screenshot:
    php files I added tempo and artist,

    after that I added in easy-digital-downloads/includes/post-types.php code like category and tag just below to get new taxnonomy in edd menu. screenshot: Taxnomony

    what I did was I added below category and tag code in post-types.php new code but with new names for tempo and artist, like this:

    `/** Tempo */
    $tempo_labels = array(
    ‘name’ => sprintf( _x( ‘%s Tempo’, ‘taxonomy general name’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
    ‘singular_name’ => sprintf( _x( ‘%s Tempo’, ‘taxonomy singular name’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
    ‘search_items’ => sprintf( __( ‘Search %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
    ‘all_items’ => sprintf( __( ‘All %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
    ‘parent_item’ => sprintf( __( ‘Parent %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
    ‘parent_item_colon’ => sprintf( __( ‘Parent %s Tempo:’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
    ‘edit_item’ => sprintf( __( ‘Edit %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
    ‘update_item’ => sprintf( __( ‘Update %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
    ‘add_new_item’ => sprintf( __( ‘Add New %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
    ‘new_item_name’ => sprintf( __( ‘New %s Tempo Name’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
    ‘menu_name’ => __( ‘Tempo’, ‘easy-digital-downloads’ ),
    ‘choose_from_most_used’ => sprintf( __( ‘Choose from most used %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
    );`

    I copy paste category code below and just replaced category name in code with tempo, and I done same thing with “artist”. Is this they way to do it or I need to do something else/different? Couldn’t find other way to do extra type in edd menu. Do I need to add anything in database or?

    Thank you,
    Regards

    • This topic was modified 7 years, 3 months ago by crashy11.
    • This topic was modified 7 years, 3 months ago by crashy11.
  • The topic ‘Extra post types/taxonomy’ is closed to new replies.