Add 'template_name' labels to Product post type and Product Category and Product Tag taxonomies (#48106)
* Add 'template_name' labels to Product post type and Product Category and Product Tag taxonomies * Add changelog file * Remove Single Product template name
This commit is contained in:
parent
7dbb910c29
commit
4ce5b6274f
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: update
|
||||
|
||||
Improve WooCommerce block template names in the Add New Template screenn
|
|
@ -108,6 +108,7 @@ class WC_Post_Types {
|
|||
'not_found' => __( 'No categories found', 'woocommerce' ),
|
||||
'item_link' => __( 'Product Category Link', 'woocommerce' ),
|
||||
'item_link_description' => __( 'A link to a product category.', 'woocommerce' ),
|
||||
'template_name' => _x( 'Products by Category', 'Template name', 'woocommerce' ),
|
||||
),
|
||||
'show_in_rest' => true,
|
||||
'show_ui' => true,
|
||||
|
@ -153,6 +154,7 @@ class WC_Post_Types {
|
|||
'not_found' => __( 'No tags found', 'woocommerce' ),
|
||||
'item_link' => __( 'Product Tag Link', 'woocommerce' ),
|
||||
'item_link_description' => __( 'A link to a product tag.', 'woocommerce' ),
|
||||
'template_name' => _x( 'Products by Tag', 'Template name', 'woocommerce' ),
|
||||
),
|
||||
'show_in_rest' => true,
|
||||
'show_ui' => true,
|
||||
|
|
Loading…
Reference in New Issue