Would it be possible to add a filter to the SQL query inside the
relevanssi_didyoumean() function? I'd like to tweak the query via my plugin without having to modify the Relevanssi plugin.
For example, this would be great:
$sql = apply_filters( 'relevanssi_didyoumean_query', "SELECT query, count(query) as c, AVG(hits) as a FROM $log_table WHERE hits > 1 GROUP BY query ORDER BY count(query) DESC", $query ); $data = $wpdb->get_results( $sql );