---
id: selfSCAN_FILTER
title: "Filter - self::SCAN_FILTER"
sidebar_label: "self::SCAN_FILTER"
---

# Filter: self::SCAN_FILTER

Filters whether a post's surrounding block template and its parts are scanned for embedded Views.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $scan | `bool` | Whether to scan. Default: whether the active theme is a block theme. |
| $post | [`\WP_Post`](https://developer.wordpress.org/reference/classes/wp_post/) | The post being rendered. |

### Since

- $ver$: $ver$

### Source

Defined in `src/View/BlockTemplateEmbeds.php` at line 80

