2022 Developer Survey is open! Take survey.
1 vote
Accepted

How to add custom meta to 'pre_get_terms'?

Most likely because the query is also searching for a match against the term name/slug, as opposed to "match either term name or meta field". If you don't need the search to also look for ...
user avatar
  • 34.9k
1 vote
Accepted

list/consult Taxonomy only for the respective author/creator in dashbboard

The WP_Term_Query class doesn't have a method named set, and calling $query->set() in my case resulted in a fatal/critical error saying "Call to undefined method WP_Term_Query::set()". :/ ...
user avatar
  • 31.5k

Only top scored, non community-wiki answers of a minimum length are eligible