Add item_link and item_link_description labels to Products, Categories and Tags

This commit is contained in:
Albert Juhé Lluveras 2021-04-27 15:09:33 +02:00
parent ef61092ebd
commit 5ab690e2a0
1 changed files with 18 additions and 12 deletions

View File

@ -92,18 +92,20 @@ class WC_Post_Types {
'update_count_callback' => '_wc_term_recount',
'label' => __( 'Categories', 'woocommerce' ),
'labels' => array(
'name' => __( 'Product categories', 'woocommerce' ),
'singular_name' => __( 'Category', 'woocommerce' ),
'menu_name' => _x( 'Categories', 'Admin menu name', 'woocommerce' ),
'search_items' => __( 'Search categories', 'woocommerce' ),
'all_items' => __( 'All categories', 'woocommerce' ),
'parent_item' => __( 'Parent category', 'woocommerce' ),
'parent_item_colon' => __( 'Parent category:', 'woocommerce' ),
'edit_item' => __( 'Edit category', 'woocommerce' ),
'update_item' => __( 'Update category', 'woocommerce' ),
'add_new_item' => __( 'Add new category', 'woocommerce' ),
'new_item_name' => __( 'New category name', 'woocommerce' ),
'not_found' => __( 'No categories found', 'woocommerce' ),
'name' => __( 'Product categories', 'woocommerce' ),
'singular_name' => __( 'Category', 'woocommerce' ),
'menu_name' => _x( 'Categories', 'Admin menu name', 'woocommerce' ),
'search_items' => __( 'Search categories', 'woocommerce' ),
'all_items' => __( 'All categories', 'woocommerce' ),
'parent_item' => __( 'Parent category', 'woocommerce' ),
'parent_item_colon' => __( 'Parent category:', 'woocommerce' ),
'edit_item' => __( 'Edit category', 'woocommerce' ),
'update_item' => __( 'Update category', 'woocommerce' ),
'add_new_item' => __( 'Add new category', 'woocommerce' ),
'new_item_name' => __( 'New category name', 'woocommerce' ),
'not_found' => __( 'No categories found', 'woocommerce' ),
'item_link' => __( 'Product Category Link', 'woocommerce' ),
'item_link_description' => __( 'A link to a product category.', 'woocommerce' ),
),
'show_ui' => true,
'query_var' => true,
@ -146,6 +148,8 @@ class WC_Post_Types {
'add_or_remove_items' => __( 'Add or remove tags', 'woocommerce' ),
'choose_from_most_used' => __( 'Choose from the most used tags', 'woocommerce' ),
'not_found' => __( 'No tags found', 'woocommerce' ),
'item_link' => __( 'Product Tag Link', 'woocommerce' ),
'item_link_description' => __( 'A link to a product tag.', 'woocommerce' ),
),
'show_ui' => true,
'query_var' => true,
@ -335,6 +339,8 @@ class WC_Post_Types {
'filter_items_list' => __( 'Filter products', 'woocommerce' ),
'items_list_navigation' => __( 'Products navigation', 'woocommerce' ),
'items_list' => __( 'Products list', 'woocommerce' ),
'item_link' => __( 'Product Link', 'woocommerce' ),
'item_link_description' => __( 'A link to a product.', 'woocommerce' ),
),
'description' => __( 'This is where you can add new products to your store.', 'woocommerce' ),
'public' => true,