Automattic\WooCommerce\Blocks\Templates

CartTemplate::render_block_templatepublicWC 1.0

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

Method of the class: CartTemplate{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

CartTemplate::render_block_template() code WC 9.9.4

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