Skip to main content

Filter: gk/gravityview/view-collection/from-post/scan-block-templates

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 81