Created
April 22, 2019 13:09
-
-
Save jchristopher/0e011ac1c486995142d87df165fdc9c1 to your computer and use it in GitHub Desktop.
Modify taxonomy terms for posts during SearchWP indexing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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