Last active
December 6, 2016 13:01
-
-
Save jchristopher/520ab56b7d2ebeefcd1d to your computer and use it in GitHub Desktop.
Customize the arguments used by SearchWP when finding unindexed content
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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment