Disable translations for taxonomies
-
How do I disable translation for specific WordPress functions? My plugin (EasyIndex) uses get_terms() and get_term_by() to get the term structures (WP_Term) for taxonomies (in this case categories) selected by the user to produce a given index. However Polylang hooks into the “get_terms_args” filter in those functions and messes with the data so the term data I ask for is not returned but instead I get the term data for translated categories. Am I able to turn off Polylang translations of taxonomies while my plugin is processing so it can retrieve the actual raw term data I need?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Disable translations for taxonomies’ is closed to new replies.