Hi @RubberDuckers,
Looks like a conflict but it’s normal when calling do_shortcode()
within existing filters. It’s the same issue if you create a hook for the_content
and call do_shortcode
within it, it will cause a loop which will cause an internal error. And it depends on the shortcode that is being executed, and it happens that [woocommerce_checkout]
triggers it.
While Gutenberg is a different builder, it doesn’t use preview that requires shortcode execution. If you’ll check the code generated by it, they aren’t a shortcode
<!-- wp:image -->
<figure class="wp-block-image"><img alt=""/></figure>
<!-- /wp:image -->
<!-- wp:image -->
<figure class="wp-block-image"><img alt=""/></figure>
<!-- /wp:image -->
And there is no conflict at all with other shortcodes.
Plus, Woocommerce added [woocommerce_checkout]
to a dedicated/reserved without any other content. It’s added alone so I recommend leaving it as it is for now just like how Woocommerce added it. That’s why checkout customization for Woocommerce has a different way, some uses plugins, some with hooks and custom codes. Please check this https://hollerwp.com/customize-woocommerce-checkout-page/
If you’re just wrapping it with a layout, then I recommend adding them as raw HTML.
Thanks!