mirror of
https://github.com/wp-graphql/wp-graphql-woocommerce.git
synced 2026-08-14 12:53:44 +02:00
Merge pull request #366 from kidunot89/bugfix/product-queries
support added for externally defined product type queries.
This commit is contained in:
@@ -406,7 +406,7 @@ class Root_Query {
|
||||
// Product queries
|
||||
$product_types = apply_filters(
|
||||
'woographql_register_product_queries',
|
||||
array( 'simple', 'variable', 'external', 'group' )
|
||||
array_keys( \WP_GraphQL_WooCommerce::get_enabled_product_types() )
|
||||
);
|
||||
foreach( $product_types as $type ) {
|
||||
$field_name = "{$type}Product";
|
||||
|
||||
Reference in New Issue
Block a user