Note: You are viewing the documentation for Version 3View Version 4 Docs

Documentation

View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

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:

<?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
Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP