lzb/block_render/callback

Custom output callback for the block. See additional info here – https://lazyblocks.com/documentation/blocks-code/php-callback/

Attributes

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

Additional Filters

  • lazyblock/BLOCK_SLUG/frontend_callback – specific block in the frontend only
  • lazyblock/BLOCK_SLUG/editor_callback – specific block in the editor only
  • lazyblock/BLOCK_SLUG/callback – specific block only

Usage

Was this page helpful?