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:
Albert Juhé Lluveras 2024-06-04 16:16:32 +02:00 committed by GitHub
parent 7dbb910c29
commit 4ce5b6274f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: update
Improve WooCommerce block template names in the Add New Template screenn

View File

@ -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,