> 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_post_content_before_tokenize_clear.md).

# asp\_post\_content\_before\_tokenize\_clear

This filter runs just before the post content is processed (shortcode execution, iframe extraction) and cleared from HTML etc.., before it is passed to the tokenization process.

```
apply_filters('asp_post_content_before_tokenize_clear', $content, $post);
```

### Parameters

* **$content(string)** - the post content
* **$post(WP\_Post)** - post type object

```php
add_filter( 'asp_post_content_before_tokenize_clear', 'asp_change_post_content_index', 10, 2 );
function asp_change_post_content_index( $content, $post ) {
    return $content. " my text";
}
```
