Created
April 22, 2019 12:52
-
-
Save jchristopher/d17b4031a43910df0e911fcdc64ba90f to your computer and use it in GitHub Desktop.
Modify comments prior to SearchWP indexing them
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 | |
add_filter( 'searchwp_indexer_comment', function( $comment ) { | |
// TODO: manipulate the $comment object in any way you see fit | |
// @link https://developer.wordpress.org/reference/classes/wp_comment/ | |
return $comment; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment