From ac5e59d75f7e61d6ce4920a9f4cd9c6f1af4c605 Mon Sep 17 00:00:00 2001 From: Puleeno Nguyen Date: Sun, 2 Jun 2024 22:16:27 +0700 Subject: [PATCH] Support render Gutenberg blocks content --- src/Page.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Page.php b/src/Page.php index 1ef3dce..0d564ae 100644 --- a/src/Page.php +++ b/src/Page.php @@ -1,7 +1,9 @@ templates); - echo $this->renderContent($engine); + if (!apply_filters('jankx/gutenberg/render/disabled', false, $this) && function_exists('jankx_is_support_block_template') && jankx_is_support_block_template()) { + echo get_the_block_template_html(); + } else { + echo $this->renderContent($engine); + } do_action('jankx/template/page/content/after', $context, $this->templates);