lzb/block_render/template_exists

Possibility to change the block render template path for https://lazyblocks.com/documentation/blocks-code/theme-template/.

Used in combination with https://lazyblocks.com/documentation/php-filters/lzb-block_render-include_template/

Attributes

  • $template block output string
  • $attributes block attributes
  • $block block data
  • $context rendering context [editor, frontend]

Additional Filters

  • lazyblock/BLOCK_SLUG/frontend_template_exists – specific block in the frontend only
  • lazyblock/BLOCK_SLUG/editor_template_exists – specific block in the editor only
  • lazyblock/BLOCK_SLUG/template_exists – specific block only

Usage

Was this page helpful?