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