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