Automattic\WooCommerce\Blocks\Templates
CartTemplate::render_block_template()
Renders the default block template from Woo Blocks if no theme templates exist.
Метод класса: CartTemplate{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$CartTemplate = new CartTemplate(); $CartTemplate->render_block_template();
Код CartTemplate::render_block_template() CartTemplate::render block template WC 9.8.4
public function render_block_template() { if ( ! is_embed() && is_cart() ) { add_filter( 'woocommerce_has_block_template', '__return_true', 10, 0 ); } }