Polylang is a very popular localization plugin:
https://en-ca.wordpress.org/plugins/polylang/
For my example, I have a custom post type with the slug “product”, and three taxonomies registered to the “product” CPT.
I’ve set Polylang to translate the CPT and its taxonomies.
Now, when I use Simple Taxonomy Ordering to reorder any one of the three taxonomies, I run into major issues.
1. Any WP_Query for the “product” CPT will result in incorrect permalinks when using get_permalink() within that secondary loop (the permalinks are missing the language slug).
2. When WP is doing ajax (DOING_AJAX = true), any WP_Query for “product” will fail and simply return results for the primary language set in Polylang.
3. Deactivating (and even completely deleting) the plugin only fixes issue #1. Unfortunately issue #2 doesn’t get fixed. I suspect that the plugin does not clean up after itself once it’s deleted.
So my question is, how do I undo what this plugin has done to the database? If deleting the plugin doesn’t purge what it’s done to the database, then would it be possible for a quick and dirty explanation on what needs to be undone so that I can fix it manually?
Thank you for your time.