Recent

get_bsearch_autocorrect_noticefunction

get_bsearch_autocorrect_notice()

Retrieve the auto-correct notice for a search whose term was transparently corrected.

Reads the original query stashed by Pro::try_autocorrect() when “Did you mean” mode is set to auto-correct and the corrected term actually returned results.

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

Signature

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

Parameters

Type Name Description
string|array $args {

Returns

string — Markup for the notice, or an empty string if the search wasn’t auto-corrected.