Automattic\WooCommerce\Blocks\BlockTypes
Cart::initialize
Initialize this block type.
- Hook into WP lifecycle.
- Register the block with WordPress.
Method of the class: Cart{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->initialize();
Cart::initialize() Cart::initialize code WC 10.3.6
protected function initialize() {
parent::initialize();
add_action( 'wp_loaded', array( $this, 'register_patterns' ) );
}