Allowing render block output wrapper, that contains block classes, IDs, and attributes, added by Lazy Blocks plugin to work properly. This wrapper is added by default on all blocks.

See additional info here – https://lazyblocks.com/documentation/blocks-code/php-callback/#frontend-output-wrapper


  • $allow_wrapper is allowed wrapper boolean
  • $attributes block attributes
  • $context rendering context [editor, frontend]

Additional Filters

  • lazyblock/BLOCK_SLUG/frontend_allow_wrapper – specific block in the frontend only
  • lazyblock/BLOCK_SLUG/editor_allow_wrapper – specific block in the editor only
  • lazyblock/BLOCK_SLUG/allow_wrapper – specific block only


Was this page helpful?