Conversation
supportHi Team, Really great plugin. I’m wondering if we can get the plugin integrated with WPGraphQL. All that would be needed to add these few lines when registering the brand taxonomy: 'show_in_graphql' => true, 'graphql_single_name' => 'Brand', 'graphql_plural_name' => 'Brands', Thanks for all the hard work.
Hello there, we hope you’re doing well! We have a filter called ‘ yith_wcbr_taxonomy_args ‘ for the arguments to use when registering the taxonomy. You can add code like the following in the functions.php file of your active child theme to achieve what you need: if ( ! function_exists( 'yith_wcbr_taxonomy_args_custom' ) ) { function yith_wcbr_taxonomy_args_custom( $args ) { $args += [ "show_in_graphql" => true, "graphql_single_name" => 'Brand', "graphql_plural_name" => 'Brands' ]; return $args; } add_filter( 'yith_wcbr_taxonomy_args', 'yith_wcbr_taxonomy_args_custom', 99, 1 ); } Could you try it and tell us if it works well for you, please? We will be attentive to your response. Have a nice day!
Hello there, we hope you’re doing well! We have a filter called ‘ yith_wcbr_taxonomy_args ‘ for the arguments to use when registering the taxonomy. You can add code like the following in the functions.php file of your active child theme to achieve what you need: if ( ! function_exists( 'yith_wcbr_taxonomy_args_custom' ) ) { function yith_wcbr_taxonomy_args_custom( $args ) { $args += [ "show_in_graphql" => true, "graphql_single_name" => 'Brand', "graphql_plural_name" => 'Brands' ]; return $args; } add_filter( 'yith_wcbr_taxonomy_args', 'yith_wcbr_taxonomy_args_custom', 99, 1 ); } Could you try it and tell us if it works well for you, please? We will be attentive to your response. Have a nice day!