wenprise/block-modules

dev-master 2021-12-10 07:10 UTC

This package is auto-updated.

Last update: 2024-04-10 11:58:13 UTC


README

Give an array of WP_Query args, a template name and render to a HTML string.

Usage

$block = new \WenpriseBlocksModules\Block();

$block->set_query([
    'post_type' => 'post',
]);

$block->set_template('post');

echo $block;