lzb/block_render/include_template

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-template_exists/

Attributes

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

Additional Filters

  • lazyblock/BLOCK_SLUG/frontend_include_template – specific block in the frontend only
  • lazyblock/BLOCK_SLUG/editor_include_template – specific block in the editor only
  • lazyblock/BLOCK_SLUG/include_template – specific block only

Usage

Was this page helpful?