Automattic\WooCommerce\Blocks\BlockTypes

CheckoutActionsBlock::initializeprotectedWC 1.0

Initialize this block type.

  • Hook into WP lifecycle.
  • Register the block with WordPress.

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

Хуков нет.

Возвращает

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

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

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

Код CheckoutActionsBlock::initialize() WC 9.9.3

protected function initialize() {
	parent::initialize();

	add_action( 'wp_loaded', array( $this, 'register_style_variations' ) );
}