Automattic\WooCommerce\Blocks\BlockTypes

ClassicTemplate::initialize()protectedWC 1.0

Initialize this block.

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

Хуков нет.

Возвращает

null. Ничего.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->initialize();

Код ClassicTemplate::initialize() WC 7.7.2

protected function initialize() {
	parent::initialize();
	add_filter( 'render_block', array( $this, 'add_alignment_class_to_wrapper' ), 10, 2 );
	add_filter( 'woocommerce_product_query_meta_query', array( $this, 'filter_products_by_stock' ) );

}