Plugin Author
Chouby
(@chouby)
Thread Starter
wzshop
(@wzshop)
Thank you, that was what I was looking for!
One more question, would I also be able to use a hook from my theme to alter the get_terms() query? Or is this always overwritten by the Polylang plugin and do I need to use a Poylang hook?
Thanks!
Plugin Author
Chouby
(@chouby)
Hello,
If you need to alter an existing term query, then WordPress provides several filters. In most cases, get_terms_args is the most useful as it allows to add / remove / modify the arguments used for the query. See: https://developer.wordpress.org/reference/hooks/get_terms_args/
Thread Starter
wzshop
(@wzshop)
Yes, I know, thank you very much. I was just checking if i can use the native WP query to change this or if it gets overwritten by a Polylang function.
Anyway, thank you!
-
This reply was modified 5 years, 9 months ago by
wzshop.