> For the complete documentation index, see [llms.txt](https://knowledgebase.ajaxsearchpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.ajaxsearchpro.com/miscellaneous/other/empty-search-input-field-on-the-search-results-page.md).

# Empty search input field on the search results page

[What is this, and where do I put this custom code?](/safe-coding-guideline.md)

```php
add_filter("asp_print_search_query", "asp_change_print_search_query", 10, 2);

function asp_change_print_search_query($query, $search_id) {
  // Return empty string
  return '';
}
```
