Skip to content

Instantly share code, notes, and snippets.

Created April 22, 2019 12:58
What would you like to do?
Customize arguments SearchWP uses to retrieve comments
add_filter( 'searchwp_indexer_comments_args', function( $args ) {
// TODO: modify $args to meet your needs. Arguments are sent to get_comments()
// @link
return $args;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment