toolbox_relevanssi_didyoumean_after

Estimated reading: 1 minute

Sets the text after the relevanssi_didyoumean suggestion. Default value is  “</p>”.

Parameters

  • $string (string)

Usage

Add a filter to change the text after the suggested search, if any.

<?php

add_filter( 'toolbox_relevanssi_didyoumean_after' , 'my_relevanssi_didyoumean_text_after' );

function my_relevanssi_didyoumean_text_after( $string ) {
    $string = '</p>';
    return $string;
}

Note: Make sure that any closing tags need to be matched to the opening tags defined in the toolbox_relevanssi_didyoumean_before filter.

Share this Doc

toolbox_relevanssi_didyoumean_after

Or copy link

CONTENTS