Created
January 29, 2018 13:45
-
-
Save jchristopher/4fbecb1003c1166ec0cecc4d8fbd179b to your computer and use it in GitHub Desktop.
Tell SWP_Query to also take into account all searchwp_exclude filters
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 | |
// Tell SWP_Query to also take into account all searchwp_include filters | |
add_filter( 'searchwp_swp_query_post__in_explicit', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment