Automattic\WooCommerce\Blocks\Templates

CheckoutTemplate::render_block_template()publicWC 1.0

Renders the default block template from Woo Blocks if no theme templates exist.

Method of the class: CheckoutTemplate{}

No Hooks.

Return

null. Nothing (null).

Usage

$CheckoutTemplate = new CheckoutTemplate();
$CheckoutTemplate->render_block_template();

CheckoutTemplate::render_block_template() code WC 9.4.2

public function render_block_template() {
	if (
		! is_embed() && is_checkout()
	) {
		add_filter( 'woocommerce_has_block_template', '__return_true', 10, 0 );
	}
}