Automattic\WooCommerce\Blocks\Templates

ProductCatalogTemplate::init │ public │ WC 1.0

Initialization method.

Метод класса: ProductCatalogTemplate{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код ProductCatalogTemplate::init() WC 11.3.0

public function init() {
	add_action( 'template_redirect', array( $this, 'render_block_template' ) );
	add_filter( 'get_block_templates', array( $this, 'handle_get_block_templates_for_post_content' ), 20, 3 );
	add_filter( 'get_post_metadata', array( $this, 'handle_get_post_metadata' ), 10, 4 );
}