For those running into issues in the future, this is what I did:
I made my pre_get_posts function that queries the taxonomy as normal for testing if an taxonomy ID is not in a list:
$q->set( 'tax_query', array(array(
'taxonomy' => 'tax',
'field' => 'id',
'terms' => tax_get_inactive(),
'operator' => 'NOT IN'
)));
Then, I implemented my tax_get_inactive function as seen above, to query my taxonomymeta table and build an exclusion list. Not the most elegant way, but it works and the exclusion list can easily be cached if performance is in mind.
Related Posts:
- Add terms to a taxonomy archive from within the same taxonomy
- How to add images to taxonomies?
- SQL QUERY needed to get POST category (taxonomy) ? – MUST be SQL statement
- Combine multiple custom user taxonomy in single url
- Advanced Tax Query
- Taxonomy , subtaxonomy,child taxonomy of a product woocommerce
- How to display custom taxonomy in multiple columns?
- Custom taxonomies making WP very slow – Way to fix?
- Sorting taxonomy columns by meta value numeric
- Get Taxonmy Term ID For Current Post
- Changing stylesheet depending on custom taxonomy terms
- How do I taxonomy terms based on terms they are used alongside?
- Custom taxonomy [year] is directing to yearly archive
- Taxonomies on custom taxonomies
- WordPress Tag or Custom Taxonomy Return All Posts if has that Word in Post Title
- Getting associated taxonomies
- How to add images to taxonomy terms? [duplicate]
- one post per term taxonomy
- Query custom taxonomy for category including children
- Amend taxonomy to search in wordpress admin
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- Tracking the name of a custom taxonomy
- Fill New Taxonomies
- Custom Taxonomies Archive Page 404
- How do you search for a post by custom taxonomy?
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- WordPress Taxonomy Menu
- wp_get_object_terms count on taxonomies within an category archive
- Make custom post type display with custom taxonomy in url
- Include attachments with a custom taxonomy in search
- Looking for suggestions on creating simple database (Help!!)
- Display taxonomy term slugs
- Next/Previous links in custom taxonomy, where item may belong to multiple terms
- How to query authors by custom taxonomy?
- Extra fields on categories that is available via the WP-API?
- Can I use multi (sub) levels of relation (AND | OR) on custom query?
- How to display custom taxonomy
- Index page of posts tagged with two separate taxonomies
- Child Pages and Custom Taxonomies
- Custom taxonomy – query returns an error
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Remove taxonomy menu without removing the metabox?
- How to perform a search inside a specific taxonomy category
- Register custom taxonomy from a Advenced custom field option page
- Taxonomy term breadcrumb; how?
- Multiple loops on a Search result page?
- add custom fields in custom taxonomy meta box in wordpress-3.5.2
- How to permanently delete a taxonomy
- Sorting Custom Taxonomy in ASC/DESC order?
- Adding a query var to taxonomy term archive – gets redirected to the other taxonomy archive page
- How can i set post_per_page in my taxonamy?
- Advanced AND tax_query in sidebar with 2 taxonomies
- How to get multiple Taxonomies not All Taxonomies?
- create taxonomy
- Select default taxonomy on dropdown
- Using wp_query is it possible to orderby taxonomy?
- List of taxonomy archive index page links
- Get Posts with matching lowest taxonomies
- Alternative for is_taxonomy() to workaround theme’s default sidebar
- Can I use $query->set() (in a pre_get_posts() hook) with a custom taxonomy in WP 3?
- What is the current page’s Taxonomy?
- Loop custom post type by taxonomy (Category)
- Any way to make custom taxonomy field searchable?
- Primary Taxonomy for Post
- Get custom taxonomy term url on archive page
- Custom Taxonomy Template Variables Available?
- query posts returns 10 records
- get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error
- Display woocommerce product_cat child terms with thumbnails
- get_term_children specific no id
- Get taxonomy image for Toolset custom taxonomy through Toolset Views Shortcode
- query grandchildren taxonomy terms
- Custom Search only for my Custom Taxonomy Page – data
- Insert taxonomy term to different table
- Getting taxonomies specific to categories
- Remove Tag Cloud Words from Custom Taxonomy
- How to add/enqueue Custom CSS for a custom taxonomy page?
- get_the_terms inside save_post gives old terms
- Adding new terms to custom taxonomy
- List posts grouped by children of a custom taxonomy
- Group custom taxonomies based on tags contained in their posts
- Hook to filter based on form value and insert term
- Prevent random entries in hierarchical false taxonomies
- Exporting CSV of users with custom user taxonomies out of WordPress
- How do I create a term for every value of a post meta?
- Taxonomies starting with a hyphen (minus) to assign B.C. dates to a post
- is_tax not working for custom taxonomy
- Complex Taxonomy scheme
- Add custom display condition to Elementor Theme Builder for custom taxonomy children, grandchildren, and great-grandchildren
- Save selected terms in order of custom taxonomy in post
- How to delete unused terms?
- Custom taxonomy with custom meta value is not sorting correctly (query returns the same value for orderby regardless of sort column click)
- Foreach for get_the_terms for hierarchical taxonomy don’t repeat Top Level Terms if contains multiple Second Level Terms
- Add text in custom taxonomy
- How do I check if a post has a term with a particular ancestor/parent?
- Child terms with improper parent in the url should redirect to 404
- Taxonomy entries are spawning copies of existing entries with the new title as the existing ID, since upgrade
- Hide empty categories on widget
- How to get parent and child name in taxonomy page
- How to enforce a requirement for custom taxonomy