You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using Polylang in combination with WPGraphQL Plugin and also ACF.
When we're trying to query specific ACF Options field values via custom endpoints, we don't receive anything but NULL.
Is there any chance to set the language and get the correct data from option fields while resolving our request?
I tried to set the language with some class functions delivered within the plugin.
PLL()->curlang = PLL()->model->get_language($args['language']);
echopll_current_language(); // Returns the language set by the line above
Sadly this line doesn't work, it seems that the language isn't really set inside the context.
The text was updated successfully, but these errors were encountered:
I am trying to register a GraphQL field (https://www.wpgraphql.com/2020/03/11/registering-graphql-fields-with-arguments/), and inside the resolve callback, I need to do a WP query, and for that I’d like to query posts in specific language. How can I get the current language? Unfortunately pll_current_language() returns false.
Hi,
It's more like a question but an issue.
We're using Polylang in combination with WPGraphQL Plugin and also ACF.
When we're trying to query specific ACF Options field values via custom endpoints, we don't receive anything but
NULL
.Is there any chance to set the language and get the correct data from option fields while resolving our request?
I tried to set the language with some class functions delivered within the plugin.
Sadly this line doesn't work, it seems that the language isn't really set inside the context.
The text was updated successfully, but these errors were encountered: