[Plugin: Relevanssi – A Better Search] Filter on the "Did you mean?" query
-
Hi Mikko,
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 );
Cheers!
John
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Plugin: Relevanssi – A Better Search] Filter on the "Did you mean?" query’ is closed to new replies.