This Documentation is for SearchWP Version 3

Available since: 2.8.8


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:

// Tell SWP_Query to also take into account all searchwp_include filters
add_filter( 'searchwp_swp_query_post__in_explicit', '__return_false' );
view raw functions.php hosted with ❤ by GitHub