Automattic\WooCommerce\Blocks\Templates
CartTemplate::render_block_template
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() 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 ); } }