Automattic\WooCommerce\Blocks\Templates

ProductSearchResultsTemplate::init()publicWC 1.0

Initialization method.

Method of the class: ProductSearchResultsTemplate{}

No Hooks.

Return

null. Nothing (null).

Usage

$ProductSearchResultsTemplate = new ProductSearchResultsTemplate();
$ProductSearchResultsTemplate->init();

ProductSearchResultsTemplate::init() code WC 8.9.0

public function init() {
	add_action( 'template_redirect', array( $this, 'render_block_template' ) );
	add_filter( 'search_template_hierarchy', array( $this, 'update_search_template_hierarchy' ), 10, 3 );
}