Automattic\WooCommerce\Blocks\BlockTypes
ClassicTemplate::initialize()
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() ClassicTemplate::initialize code WC 9.7.1
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' ) ); }