Feature Request: Dynamic Content for Search Query

Not sure if there’s a technical limitation around this, but it would be handy to have a DC string for a user’s search query.

I found this topic, so I can address the use-case of displaying the search string in a text element. However, I would love to be able to use fallback="" values in a couple scenarios, so a native DC would be :sunglasses:

Hi @devinelston,

Gotcha! We’re pushing 4.1.0 today but I was able to quickly add a few lines to expose get_search_query https://developer.wordpress.org/reference/functions/get_search_query/ via dynamic content.

1 Like

Thanks, as always, @alexander!

You’re welcome!