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


Since: 4.0.0

Table of Contents

Control whether SearchWP considers the db_where() criteria for Sources.

This functionality adds a layer of protection against content edits that were made in such a way that SearchWP’s indexer was not able to capture.

If you are confident that your content edits are all taking place through APIs as captured by the Sources you’re using you can omit this additional check, saving database calls and increasing performance.


Type Parameter Default Since
Boolean $enabled true 4.0.0
\SearchWP\Query $query The Query being run 4.0.0


All hooks should be added to your custom SearchWP Customizations Plugin.

Disable Source database table conditions

// Disable Source database table conditions in SearchWP.
function( $enabled, $query ) {
return false;
30, 2

How to use this code

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