Automattic\WooCommerce\Blocks\Templates

CartTemplate::render_block_template()publicWC 1.0

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

Method of the class: CartTemplate{}

No Hooks.

Return

null. Nothing (null).

Usage

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

CartTemplate::render_block_template() code WC 9.0.1

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