better_search_query_posts_search
Filters the Search part of the WHERE clause of the Better_Search.
Type: filter
Since: 3.0.0
Source: includes/class-better-search-core-query.php line 1186
Changelog
| Version | Description |
|---|---|
4.2.0 |
Added $instance parameter. |
3.0.0 |
Introduced. |
Parameters
| Type | Name | Description |
|---|---|---|
string |
$where |
The search part of the WHERE clause of the query. |
\WP_Query |
$query |
The WP_Query instance. |
Better_Search_Core_Query |
$instance |
The Better_Search_Core_Query instance (passed by reference). |
Usage
add_filter( 'better_search_query_posts_search', function($where, $query, $instance) {
// ...
return $where;
} );