---
name: kimaai_embedding_skip_block_names
type: filter
since: 1.4.2
tier: premium
feature: embeddings
area: embedding-search
summary: Lists the blocks the fallback extractor leaves out when a post's rendered content has almost no text.
parameters:
  - name: block_names
    type: string[]
    description: Block names to skip, gravityforms/form by default.
  - name: post
    type: WP_Post
    description: The post being prepared for the knowledge base.
returns:
  type: string[]
  description: The block names to skip.
---

# kimaai_embedding_skip_block_names

## When it fires

Only in the fallback of the text extraction. A post is indexed from its rendered content; when that gives fewer than 40 characters of text (blocks that render only images, or content a page builder renders elsewhere), KimaAI also walks the post's blocks and adds their text: ACF blocks (`acf/...`) with the values of their fields, other blocks with their rendered HTML. That walk applies the filter once per block and leaves out the blocks it returns, inner blocks included.

The filter does not change the rendered content, which is what most posts are indexed from. To keep a block's output out there, remove its markup by class with `kimaai_embedding_remove_node_class_sets`, or a shortcode's with `kimaai_embedding_shortcode_blocklist`.

## Example

```php
add_filter(
  'kimaai_embedding_skip_block_names',
  function (array $block_names): array {
    // The newsletter block is on every page and says nothing about it.
    $block_names[] = 'acme/newsletter-signup';

    return $block_names;
  }
);
```

## Related

- `kimaai_embedding_remove_node_class_sets`: removes elements of the rendered content by class.
- `kimaai_embedding_render_mode`: how the content is rendered.
