Available since: 2.8.8
searchwp_swp_query_post__in_explicit
By default, SWP_Query assumes that it should ignore outside implementations of searchwp_include (so as to not interfere with the SWP_Query singleton in use. If you want SWP_Query to inherit all other searchwp_include filters, add this 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 | |
// Tell SWP_Query to also take into account all searchwp_include filters | |
add_filter( 'searchwp_swp_query_post__in_explicit', '__return_false' ); |