Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Modify taxonomy terms for posts during SearchWP indexing.
<?php
// Modify taxonomy terms for posts during SearchWP indexing.
add_filter( 'searchwp_indexer_taxonomy_terms', function( $terms, $taxonomy, $post_being_indexed ) {
// TODO: modify $terms in any way you'd like.
return $terms;
}, 20, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.