Automattic\WooCommerce\Blocks\BlockTypes
ClassicTemplate::initialize
Initialize this block.
Метод класса: ClassicTemplate{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->initialize();
Код ClassicTemplate::initialize() ClassicTemplate::initialize WC 10.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' ) );
}