Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation

AbstractOrderConfirmationBlock::initialize()protectedWC 1.0

Initialize this block type.

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

Method of the class: AbstractOrderConfirmationBlock{}

No Hooks.

Return

null. Nothing (null).

Usage

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

AbstractOrderConfirmationBlock::initialize() code WC 8.9.0

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