PeteKoda

Results 3 comments of PeteKoda

Hey @brianpereradap , i tried adding the translations field to the product connection but it stopped working for me so I just created an API call that fetches the available...

Hi @H-Nguyenx. You can fetch all the products of a particular language with this plugin by using the product category query and the language as the where parameter. If you...

add_post_type_fields(get_post_type_object('product')); function add_post_type_fields(\WP_Post_Type $post_type_object) { if (!pll_is_translated_post_type($post_type_object->name)) { return; } $type = ucfirst($post_type_object->graphql_single_name); register_graphql_fields("RootQueryTo${type}ConnectionWhereArgs", [ 'language' => [ 'type' => 'LanguageCodeFilterEnum', 'description' => "Filter by ${type}s by language code (Polylang)",...