Block that renders html saved in a php file
I have an html snippet saved as a php file (e.g.
<?php if (!defined('ABSPATH')) exit; ?> <div> foo bar baz </div>
In a separate file
mywidget-block.php, how can I create a block that “wraps” the markup from
The block documentation is quite involved, and I’m hoping to create this simplest of blocks, without having to learn react. All it does is output html saved in some php file.