SearchWP

This Documentation is for SearchWP Version 3

Available since: 2.5

searchwp_indexer_unindexed_args

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:

<?php
function my_searchwp_indexer_unindexed_args( $args ) {
// TODO: customize $args in any way you'd like, see @link https://codex.wordpress.org/Template_Tags/get_posts
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

Parameters

Parameter Type Description
$args Array

The default arguments used by SearchWP

[wpforms id="3080"]