Reply To: How to access search phrase via add_filter

Home Forums Product Support Forums Ajax Search Pro for WordPress Support How to access search phrase via add_filter Reply To: How to access search phrase via add_filter

#10136

luyendao
Participant

Hi Ernest,

Thanks that's helpful to know how to modify the search phrase.

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.

I am running multiple search instances – any ideas?

Thanks again.

  • This reply was modified 2 years ago by  luyendao.