So I want to be able to get all terms from a custom taxonomy. My custom taxonomy has been created in specific languages; doing a simple WP_Term_Query isn't enough as that only gets the terms for my default language.
I've tried multiple ways of getting the terms I want such as:
- Passing in surpress_filters to the WP_Term_Query class
- Using get_terms instead as that behaves differently (explained below)
- Removing "get_terms_filter" sitepress filter manually
All of these solutions give me only the en-gb (default language) records.
Behind trying get_terms: Method get_term uses a new WP_Term_Query without parameters Following that it can call ->query($args) rather than the conventional ->terms This query doesn't apply filters to the data.