Recent

the_bsearch_scorefunction

the_bsearch_score()

Display the relevance score for the post.

Since: 3.0.0
Source: includes/general-template.php line 551

Changelog

Version Description
3.3.0 Removed $echo parameter. This function will always display the score.
3.0.0 Introduced.

Signature

function the_bsearch_score( $args = ... ): void|string;

Parameters

Type Name Description
string|array $args {

Returns

void|string — Void if ‘echo’ argument is true, the title attribute if ‘echo’ is false.