Note: You are viewing the documentation for Version 3View Version 4 Docs


View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

Available since: 2.5


View Parameters »

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

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

Note: Finding unindexed Media is different than searchwp_indexer_unindexed_args


Parameter Type Description
$args Array

The default arguments used by SearchWP

Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP