lzb/block_render/attributes

Filters block attribute before render block output.

Attributes

  • $attributes block attributes
  • $content block content value
  • $block block data
  • $context rendering context [editor, frontend]

Additional Filters

  • lazyblock/BLOCK_SLUG/frontend_attributes – specific block in the frontend only
  • lazyblock/BLOCK_SLUG/editor_attributes – specific block in the editor only
  • lazyblock/BLOCK_SLUG/attributes – specific block only

Usage

Was this page helpful?