{"id":138757,"date":"2026-11-20T08:01:40","date_gmt":"2026-11-20T11:01:40","guid":{"rendered":"https:\/\/wpclub.pro\/item\/dmca-wpml-graphql-addon\/"},"modified":"2026-11-20T08:03:41","modified_gmt":"2026-11-20T11:03:41","slug":"dmca-wpml-graphql-addon","status":"publish","type":"product","link":"https:\/\/wpclub.pro\/en\/item\/dmca-wpml-graphql-addon\/","title":{"rendered":"WPML GraphQL Addon"},"content":{"rendered":"<h2>Quick summary<\/h2>\n<p style=\"text-align: justify\">The WPML GraphQL Addon is a plugin that adds multilingual support to WPGraphQL, allowing each query about your WordPress site&#039;s content to be filtered by language directly from the schema. Instead of retrieving all available content and then discarding anything that doesn&#039;t match the visitor&#039;s language, the product incorporates a language argument into posts, custom post types, taxonomy terms, menus, menu items, and comments. It&#039;s designed for projects where WordPress functions as a headless backend: a separate frontend consumes the WPGraphQL schema and needs to receive, in a single query, the exact language it needs, without duplicate requests or additional client-side filtering logic.<\/p>\n<h2>What problem does it help solve?<\/h2>\n<p style=\"text-align: justify\">In headless projects built on WordPress, retrieving content in the correct language often becomes an engineering challenge in itself. Without a language layer in the schema, the frontend has to request all available content, inspect a field indicating the language of each node, and manually discard what&#039;s not needed. This doubles the volume of requests, forces filtering logic to be kept outside the query, and complicates any future changes to the content structure. The WPML GraphQL Addon solves this by moving the filtering to the schema itself: simply pass a language argument\u2014for example, <em>language: \u00abes\u00bb<\/em>\u2013 so that the response arrives already truncated to the requested language, without needing to post-process anything on the frontend or guess which field contains that information.<\/p>\n<h2>Why this solution makes a difference<\/h2>\n<p style=\"text-align: justify\">The difference lies in how the language is propagated within a single query. When you filter a top-level node\u2014for example, a list of posts\u2014by language, related elements, such as categories, tags, or custom taxonomies, automatically follow that same language without you having to repeat the argument in each nested field. This prevents inconsistent results, where the post is in one language and its categories appear in another. Furthermore, the field <em>translations<\/em>, Available in publications and taxonomy terms, this feature returns every existing translation for that node in a single query: its slug, URI, language code, and any additional nested fields you request. It&#039;s precisely the information a language selector displayed alongside page content needs, without chaining multiple requests from the frontend to gather data for each language.<\/p>\n<h2>Signs you need this product<\/h2>\n<p style=\"text-align: justify\">There are several signs that this plugin is a good fit for your project. One is if your frontend already queries WPGraphQL and your client-side code has to manually filter the results by language after receiving the response. Another is if you&#039;re building a language selector and end up making chained queries to gather each translation for a page instead of getting them in a single request. The same applies if your menus, comments, or taxonomies don&#039;t respect the visitor&#039;s active language when queried from the schema, or if your project uses Advanced Custom Fields with WPGraphQL for ACF and you need those custom fields\u2014including option pages, repeaters, and relationship fields\u2014to also respond to the language of each query.<\/p>\n<h2>When does it make sense to use it (and when doesn&#039;t)<\/h2>\n<p style=\"text-align: justify\">It makes sense to use it when your WordPress site functions as a content backend for a separate frontend\u2014an application, a statically generated site, or any client that consumes the WPGraphQL schema\u2014and that content exists in more than one language managed by WPML. It also adds value in projects that model some of their content with ACF and ACFML and need option pages and relationship fields to automatically respond in the correct language. It doesn&#039;t make much sense to install it on a monolingual site, a project that doesn&#039;t use WPGraphQL as a query layer, or a traditional site where the WordPress theme itself already handles language without going through an external API.<\/p>\n<h2>Who it fits best for<\/h2>\n<p style=\"text-align: justify\">It&#039;s especially well-suited for development teams building headless frontends on WordPress who need a consistent language layer within their GraphQL schema, rather than reinventing the filtering logic for each new project. It&#039;s also useful for agencies maintaining multiple multilingual sites with WPML who prefer language filtering to be handled within the schema itself, in a single location, rather than spread across different frontend code snippets. If the project also uses ACF to model some of the content, the plugin becomes relevant for those maintaining that data model as well.<\/p>\n<h2>Practical benefits<\/h2>\n<p style=\"text-align: justify\">With the WPML GraphQL Addon, you can request a list of posts in a specific language and receive their categories and tags already in that same language, without additional arguments for each nested field. In a single query, you can retrieve every available translation for a page along with its slug and URI\u2014just the data needed to build a functional language selector. Menus and their elements accept the same language argument as posts, as do comments associated with content in a specific language. The queries <em>languages<\/em> y <em>defaultLanguage<\/em> They return the complete list of active languages on the site, with their code, locale, native name, flag URL, and home URL: the ideal data format for building a custom language selector. You can also request a specific post by its slug or database identifier, in any language, and receive it already translated\u2014title, slug, and URI included\u2014without needing any extra logic to determine if the result corresponds to a translation.<\/p>\n<h2>How it fits within WordPress<\/h2>\n<p style=\"text-align: justify\">The plugin leverages WPGraphQL to expose the query schema and WPML to manage content translations; it sits between them as a language layer, without replacing either. It stays aligned with each WPGraphQL release\u2014the team that maintains that plugin collaborates directly on the process, so the multilingual schema evolves alongside core changes. When the project uses Advanced Custom Fields, the WPML GraphQL Addon integrates with ACFML and WPGraphQL for ACF so that custom fields, including options pages, repeaters, flex content, and relationship fields, follow the same language rules as the rest of the schema. A relationship field configured as a copy retains translated identifiers: when WPML copies that field to the translation, ACFML replaces each identifier with its corresponding translation identifier, and retains the original until that translation exists. The way the language is specified in each request depends on the URL format configured in WPML: with a domain per language, the endpoint for that domain is called directly; with the language parameter, it&#039;s appended to the endpoint&#039;s URL; and with the folder format, which doesn&#039;t have a separate endpoint for each language, the filtering is done within the query arguments themselves. The plugin is included with WPML Multilingual CMS and WPML Agency, so if you already have one of these packages, you don&#039;t need to purchase it separately: simply activate it from your WPML downloads panel to get it working on your site.<\/p>\n<h2>Typical use cases<\/h2>\n<p style=\"text-align: justify\">A common scenario is an editorial or e-commerce site that displays its catalog or products to a separate frontend application, where each view only needs to request the visitor&#039;s active language, without receiving any additional information. Another frequent case is the language selector displayed next to the page content: a single query with the field <em>translations<\/em> It retrieves every available language variant, instead of chaining multiple requests from the frontend. This is also common on sites that model some of their content with ACF\u2014for example, data for different physical stores on an options page, with a repeater for offices and a flexible content field for promotions\u2014and need that data to respond to the language requested in the query. When a related post doesn&#039;t have a translation in the requested language, WPML doesn&#039;t fill the gap with the default language: that node is simply omitted from the result, so the frontend receives a shorter list instead of a mix of languages, unless the content type is configured to display as translated, in which case it appears in the available original language.<\/p>\n<h2>Frequently Asked Questions about WPML GraphQL Addon<\/h2>\n<h3>Does WPML GraphQL Addon replace WPGraphQL?<\/h3>\n<p style=\"text-align: justify\">No. It works on top of WPGraphQL and extends its schema with a language argument and additional translation fields; you need to have WPGraphQL active on the site for the plugin to take effect.<\/p>\n<h3>Do I need to buy it separately if I already have WPML?<\/h3>\n<p style=\"text-align: justify\">If you have WPML Multilingual CMS or WPML Agency, the plugin is already included within those terms of use; you just need to activate it from your WPML downloads panel, without any additional payment per site.<\/p>\n<h3>What happens if a related publication does not have a translation in the language being consulted?<\/h3>\n<p style=\"text-align: justify\">WPML does not replace that content with the default language: the corresponding node is omitted from the result. The exception is when the content type is set to display as translated, in which case it appears in the original available language and the list can mix languages.<\/p>\n<h3>Does it work with Advanced Custom Fields fields?<\/h3>\n<p style=\"text-align: justify\">Yes, as long as you add ACFML and WPGraphQL for ACF to your project. With that combination, options pages, repeaters, flexible content, and relationship fields will all follow the same language as the rest of the query.<\/p>\n<h3>How do I specify the language in each query?<\/h3>\n<p style=\"text-align: justify\">It depends on the URL format configured in WPML: with one domain per language, the endpoint of that domain is called; with the language parameter, it is added to the URL of the endpoint; and with the folder format, the language is filtered directly within the query arguments.<\/p>\n<h2>Conclusion<\/h2>\n<p style=\"text-align: justify\">For a headless project built on WordPress and WPGraphQL, resolving the language within the schema itself saves client-side logic, avoids duplicate requests, and maintains consistency across related data. The product adds precisely that layer, supported by WPML and compatible with ACF when the content model requires it, without forcing users to leave the standard WPGraphQL workflow or create custom solutions for something the schema already handles.<\/p>","protected":false},"excerpt":{"rendered":"<p>Quick summary: The WPML GraphQL Addon is a plugin that adds multilingual support to WPGraphQL, so that every query about<\/p>","protected":false},"featured_media":138756,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false},"product_brand":[],"product_cat":[538],"product_tag":[489],"class_list":["post-138757","product","type-product","status-publish","has-post-thumbnail","product_cat-dmca","product_tag-plugins-para-multilenguaje","pa_autores-dmca","first","instock","sale","downloadable","virtual","sold-individually","purchasable","product-type-simple"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpclub.pro\/en\/wp-json\/wp\/v2\/product\/138757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpclub.pro\/en\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/wpclub.pro\/en\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/wpclub.pro\/en\/wp-json\/wp\/v2\/comments?post=138757"}],"version-history":[{"count":0,"href":"https:\/\/wpclub.pro\/en\/wp-json\/wp\/v2\/product\/138757\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpclub.pro\/en\/wp-json\/wp\/v2\/media\/138756"}],"wp:attachment":[{"href":"https:\/\/wpclub.pro\/en\/wp-json\/wp\/v2\/media?parent=138757"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/wpclub.pro\/en\/wp-json\/wp\/v2\/product_brand?post=138757"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/wpclub.pro\/en\/wp-json\/wp\/v2\/product_cat?post=138757"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/wpclub.pro\/en\/wp-json\/wp\/v2\/product_tag?post=138757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}