bsearch_score2percent
Filter search result score
Type: filter
Since: 3.0.0
Source: includes/util/class-helpers.php line 609
Parameters
| Type | Name | Description |
|---|---|---|
string | $output | Score converted to percentage. |
float | $score | Score for the search result. |
float | $topscore | Score for the most relevant search result. |
Usage
add_filter( 'bsearch_score2percent', function($output, $score, $topscore) {
// ...
return $output;
} );