Automattic\WooCommerce\Blocks\BlockTypes

ClassicTemplate::initialize()protectedWC 1.0

Initialize this block.

Method of the class: ClassicTemplate{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->initialize();

ClassicTemplate::initialize() code WC 8.7.0

protected function initialize() {
	parent::initialize();
	add_filter( 'render_block', array( $this, 'add_alignment_class_to_wrapper' ), 10, 2 );
	add_action( 'enqueue_block_assets', array( $this, 'enqueue_block_assets' ) );
}