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:
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 | |
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' ); |
Note: Finding unindexed Media is different than searchwp_indexer_unindexed_media_args
Parameters
Parameter | Type | Description |
---|---|---|
$args |
Array |
The default arguments used by SearchWP |