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

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