Automattic\WooCommerce\Blocks\Templates
ProductBrandTemplate::render_block_template
Run template-specific logic when the query matches this template.
Метод класса: ProductBrandTemplate{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ProductBrandTemplate = new ProductBrandTemplate(); $ProductBrandTemplate->render_block_template();
Код ProductBrandTemplate::render_block_template() ProductBrandTemplate::render block template WC 11.3.0
public function render_block_template() {
if ( ! is_embed() && is_product_taxonomy() && is_tax( 'product_brand' ) ) {
$compatibility_layer = new ArchiveProductTemplatesCompatibility();
$compatibility_layer->init();
add_filter( 'woocommerce_has_block_template', '__return_true', 10, 0 );
}
}