You can also use PHP code to render Frontend and Editor block output. Each Lazy Block has filter for custom output callback. This output will be used instead of block Frontend HTML and Editor HTML:

Frontend Output Wrapper

Lazy blocks automatically add a wrapper to your frontend output code. If you want to add your own wrapper implementation with custom attributes, you can easily disable default wrapper for your block using this filter:

Look at this code part to see what exactly added to the wrapper:

Was this helpful to you?