Recent

better_search_custom_tables_query_where_sqlfilterPro only

better_search_custom_tables_query_where_sql

Filter the SQL for the WHERE clause.

Type: filter
Since: 4.2.0
Source: includes/pro/custom-tables/class-posts-search.php line 573

Parameters

Type Name Description
string $where_sql SQL for WHERE clause.
string $search_query Search term.
Posts_Search $instance Current instance of Posts_Search.

Usage

add_filter( 'better_search_custom_tables_query_where_sql', function($where_sql, $search_query, $instance) {
    // ...
    return $where_sql;
} );