Recent

get_bsearch_did_you_meanfunction

get_bsearch_did_you_mean()

Retrieve the “Did you mean” spelling suggestion for a zero-result search.

Reads the suggestion computed by Pro::suggest_did_you_mean() and stored on the query object. Exposed as a template tag so seamless-mode themes — which render their own search.php, not Better Search’s template — can opt in directly.

Since: 4.4.0
Source: includes/general-template.php line 657

Signature

function get_bsearch_did_you_mean( $args = ... ): string;

Parameters

Type Name Description
string|array $args {

Returns

string — Markup for the suggestion, or an empty string if none is available.