I'm trying to create a widget that will appear on the search result page on my Q2A site.
For example if a user searches for "plugins" I want my widget to display the word "plugins"
But currently, in my output_widget function, the $request parameter only returns the string "search" but not the search query (which is what I am looking for)
If someone could help me get the search query in the widget I would really appreciate it. Thanks!