Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Customize arguments SearchWP uses to retrieve comments
<?php
add_filter( 'searchwp_indexer_comments_args', function( $args ) {
// TODO: modify $args to meet your needs. Arguments are sent to get_comments()
// @link https://codex.wordpress.org/Function_Reference/get_comments
return $args;
} );
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.