Automattic\WooCommerce\Blocks\BlockTypes

Cart::initialize()protectedWC 1.0

Initialize this block type.

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

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

Хуков нет.

Возвращает

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

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

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

Код Cart::initialize() WC 9.6.0

protected function initialize() {
	parent::initialize();
	add_action( 'wp_loaded', array( $this, 'register_patterns' ) );
}