Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created March 18, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/f4c5f53631cb4299843a to your computer and use it in GitHub Desktop.
Save jchristopher/f4c5f53631cb4299843a to your computer and use it in GitHub Desktop.
Customize the arguments used by SearchWP when finding unindexed Media
<?php
function my_searchwp_indexer_unindexed_media_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_media_args', 'my_searchwp_indexer_unindexed_media_args' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment