Automattic\WooCommerce\Blocks\Templates

SingleProductTemplate::init()publicWC 1.0

Initialization method.

Method of the class: SingleProductTemplate{}

No Hooks.

Return

null. Nothing (null).

Usage

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

SingleProductTemplate::init() code WC 8.9.0

public function init() {
	add_action( 'template_redirect', array( $this, 'render_block_template' ) );
	add_filter( 'get_block_templates', array( $this, 'update_single_product_content' ), 11, 3 );
}