I'm not sure how to output the search phrase above the results in the first place – so it outputs “Your search for search_phrase” above the results. I was thinking if I can access the function that returns the $phrase, then output it into the hook 'asp_add_header_data' that should work?

When i added the code above on its own, i get nothing returned and the whole results array comes back empty.

I can pass a test string into asp_change_search_phrase() and get that back, but can't seem to access $phrase itself.