# 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');
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.ajaxsearchpro.com/hooks/filters/search-results/asp_suggested_phrases.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
