Automattic\WooCommerce\Blocks\Templates
ProductCatalogTemplate::init()
Initialization method.
Method of the class: ProductCatalogTemplate{}
No Hooks.
Return
null
. Nothing (null).
Usage
$ProductCatalogTemplate = new ProductCatalogTemplate(); $ProductCatalogTemplate->init();
ProductCatalogTemplate::init() ProductCatalogTemplate::init code WC 9.4.2
public function init() { add_action( 'template_redirect', array( $this, 'render_block_template' ) ); add_filter( 'current_theme_supports-block-templates', array( $this, 'remove_block_template_support_for_shop_page' ) ); }