# asp\_index\_terms

Gives access to taxonomy terms related to post, before they are merged to tokenization

```
apply_filters('asp_index_terms', $terms, $taxonomy, $post);
```

### Parameters

* **$terms(array)** - array of taxonomy term names
* **$taxonomy(string)** - taxonomy name
* **$post(WP\_Post)** - post type object

```php
add_filter( 'asp_index_terms', 'asp_change_terms_index', 10, 3 );
function asp_change_terms_index( $terms, $taxonomy, $post ) {
    if ( $taxonomy == 'my_taxonomy' ) {
        return array_diff($terms, array('term 1', 'term 2'));
    } else {
        return $terms;
    }
}
```


---

# 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/index-table-related/asp_index_terms.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.
