This Documentation is for SearchWP Version 3

Available since: 2.5


View Parameters »

SearchWP determines what content has not been indexed using a standard call to get_posts(). If you would like to customize these arguments and in turn redefine which content is considered for indexing, add something like the following to your theme’s functions.php:

function my_searchwp_indexer_unindexed_args( $args ) {
// TODO: customize $args in any way you'd like, see @link
return $args;
add_filter( 'searchwp_indexer_unindexed_args', 'my_searchwp_indexer_unindexed_args' );
view raw gistfile1.php hosted with ❤ by GitHub

Note: Finding unindexed Media is different than searchwp_indexer_unindexed_media_args


Parameter Type Description
$args Array

The default arguments used by SearchWP