Automattic\WooCommerce\Blocks\Templates
ProductSearchResultsTemplate::render_block_template
Run template-specific logic when the query matches this template.
Method of the class: ProductSearchResultsTemplate{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ProductSearchResultsTemplate = new ProductSearchResultsTemplate(); $ProductSearchResultsTemplate->render_block_template();
ProductSearchResultsTemplate::render_block_template() ProductSearchResultsTemplate::render block template code WC 11.1.2
public function render_block_template() {
if ( ! is_embed() && is_post_type_archive( 'product' ) && is_search() ) {
$compatibility_layer = new ArchiveProductTemplatesCompatibility();
$compatibility_layer->init();
}
}