Skip to main content

Filter: self::SCAN_FILTER

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

Parameters​

NameTypeDescription
$scanboolWhether to scan. Default: whether the active theme is a block theme.
$post\WP_PostThe post being rendered.

Since​

  • 3.5.0

Source​

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