We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
We have to change the method to get_terms which has support for language through polylang. Here's a quick example:
get_terms
$lang = ! empty( $this->i18n['locale'] ) ? $this->i18n['locale'] : \pll_default_language(); $found_terms = \get_terms( [ 'slug' => $slug, 'taxonomy' => $taxonomy, 'lang' => $lang, 'hide_empty' => false, 'fields' => 'ids', ] );
the existence of pll should also be checked in the code.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We have to change the method to
get_terms
which has support for language through polylang. Here's a quick example:the existence of pll should also be checked in the code.
The text was updated successfully, but these errors were encountered: