Recent

better_search_query_posts_where_matchfilter

better_search_query_posts_where_match

Filter the MATCH clause of the WHERE clause of the query.

Type: filter
Since: 4.2.0
Source: includes/class-better-search-core-query.php line 985

Parameters

Type Name Description
string $match_clause The MATCH section of the WHERE clause of the query.
string $where The WHERE clause of the query.
\WP_Query $query The WP_Query instance.
Better_Search_Core_Query $instance The Better_Search_Core_Query instance.

Usage

add_filter( 'better_search_query_posts_where_match', function($match_clause, $where, $query, $instance) {
    // ...
    return $match_clause;
} );