Recent

better_search_custom_tables_query_score_sqlfilterPro only

better_search_custom_tables_query_score_sql

Filter the SQL used for calculating the search score.

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

Parameters

Type Name Description
string $score_sql SQL for score calculation.
string $search_query Search term.
Posts_Search $instance Current instance of Posts_Search.

Usage

add_filter( 'better_search_custom_tables_query_score_sql', function($score_sql, $search_query, $instance) {
    // ...
    return $score_sql;
} );