> 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/hooks/filters/search-results/asp_suggested_phrases.md).

# asp\_suggested\_phrases

Allowsaccess to the Suggested Phrases (beneath the search bar) on certain conditions.

![](https://i.imgur.com/74G3kKq.png)

```php
apply_filters('asp_suggested_phrases', array $phrases, int $search_id);
```

### Parameters

* **$phrases**(array) - Array containing the keywords.
* **$search\_id** (int) - Search instance ID

### Usage

```php
add_filter( 'asp_suggested_phrases', 'asp_custom_suggested_phrases', 10, 2 );
function asp_custom_suggested_phrases( $phrases, $search_id ) {
    return array('keyword 1', 'keyword 2');
}
```
