# asp\_print\_search\_query

![](https://1744076133-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9rmHbZfTKVQ7YzbIZL%2F-Ml8v6FDXXIgptqgP8MZ%2F-Ml8vaLiUsHLD53HPLr2%2Fimage.png?alt=media\&token=75d35c18-9499-44ca-921a-a03141abfd66)

### Parameters

* **$query**(string) - The search query string
* **$id** (int) - Search instance ID

### Usage

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

function asp_change_print_search_query($query, $search_id) {
  // Do whatever with the query
  return $query;
}
```
