Skip to content

Commit 3b50921

Browse files
authored
hotfix: Fixes breaks created by WPGraphQL v1.6.3 (#580)
* hotfix: Fixes breaks created by WPGraphQL v1.6.3 * chore: testing library removed
1 parent f9dab51 commit 3b50921

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/class-core-schema-filters.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,14 @@ public static function register_post_types( $args, $post_type ) {
136136
$args['show_in_graphql'] = true;
137137
$args['graphql_single_name'] = 'ProductVariation';
138138
$args['graphql_plural_name'] = 'ProductVariations';
139+
$args['publicly_queryable'] = true;
139140
$args['skip_graphql_type_registry'] = true;
140141
}
141142
if ( 'shop_coupon' === $post_type ) {
142143
$args['show_in_graphql'] = true;
143144
$args['graphql_single_name'] = 'Coupon';
144145
$args['graphql_plural_name'] = 'Coupons';
146+
$args['publicly_queryable'] = true;
145147
$args['skip_graphql_type_registry'] = true;
146148
}
147149
if ( 'shop_order' === $post_type ) {

0 commit comments

Comments
 (0)