Automattic\WooCommerce\Blocks\Templates
ProductCatalogTemplate::render_block_template
Run template-specific logic when the query matches this template.
Метод класса: ProductCatalogTemplate{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ProductCatalogTemplate = new ProductCatalogTemplate(); $ProductCatalogTemplate->render_block_template();
Код ProductCatalogTemplate::render_block_template() ProductCatalogTemplate::render block template WC 11.0.1
public function render_block_template() {
if ( ! is_embed() && ( is_post_type_archive( 'product' ) || is_page( wc_get_page_id( 'shop' ) ) ) && ! is_search() ) {
$compatibility_layer = new ArchiveProductTemplatesCompatibility();
$compatibility_layer->init();
}
}