Adding text to product title in seach results (in suggestions dropdown box)

Hi,
I’m trying to modify the Search Result title of the suggestions dropdown.
I tried the following hook, but it doesn’t seem to work on the suggestions box, is that correct? Is there a way to modify these titles?


add_filter( 'aws_title_search_result', 'my_aws_title_search_result', 10, 3 );
function my_aws_title_search_result( $title, $product_id, $product ) {
    $field = 'test-text';
    if ( $field ) {
        $title = $title . ' ' . $field;
    }
    return $title;
}

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer