-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Currently it is possible to hook in at pre_get_terms to modify the query args before query is actually run, but there is no good way to guarantee that the query instance is part of the terms archive.
You can check is_terms_archive(), but it is always possible that there are other term queries being run on the same page.
Core has is_main_query( $query ) and $query->is_main_query() for WP_Query...
Maybe there could be some helpers like is_term_query(), is_main_term_query() and is_term_count_query()?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels