Skip to content

Commit

Permalink
fix: wrong taxonomy label in product attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
creative-andrew committed Jun 18, 2024
1 parent 61b99ea commit eca382f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/type/object/class-product-attribute-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static function register() {
'description' => __( 'Attribute label', 'wp-graphql-woocommerce' ),
'resolve' => static function ( $attribute ) {
$taxonomy = get_taxonomy( $attribute->get_name() );
return $taxonomy ? ucwords( $taxonomy->labels->singular_name ) : null;
return $taxonomy ? $taxonomy->labels->singular_name : null;
},
],
'name' => [
Expand Down

0 comments on commit eca382f

Please sign in to comment.