Skip to content

Instantly share code, notes, and snippets.

Created April 24, 2019 17:47
What would you like to do?
Customize whether SearchWP thinks a taxonomy is in use
add_filter( 'searchwp_is_used_taxonomy', function( $used, $taxonomy ) {
// TODO: Determine whether the taxonomy is in use.
return $used; // true/false
}, 20, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment