how to build programatically Lazy Blocks within theme
-
Hi,
I want to develop a Lazy Block without adding by WordPress Admin. I have seen docs and I don’t understand examples there. I have success only with exported code from plugin, but i can’t put template path, for example:
…/<my_theme>/functions.php:
if ( function_exists( 'lazyblocks' ) ) : lazyblocks()->add_block( array( .... 'code' => array( ... 'frontend_html' => '/blocks/lazyblock-hello-world-block/block.php', ... ),
`
ideally I would split code into multiple files (frontend, editor, css and js) of the block.
Thanks in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘how to build programatically Lazy Blocks within theme’ is closed to new replies.