Automattic\WooCommerce\Blocks\Domain\Services

CheckoutFields::init()publicWC 1.0

Initialize hooks.

Method of the class: CheckoutFields{}

No Hooks.

Return

null. Nothing (null).

Usage

$CheckoutFields = new CheckoutFields();
$CheckoutFields->init();

CheckoutFields::init() code WC 9.0.1

public function init() {
	add_action( 'woocommerce_blocks_checkout_enqueue_data', array( $this, 'add_fields_data' ) );
	add_action( 'woocommerce_blocks_cart_enqueue_data', array( $this, 'add_fields_data' ) );
	add_filter( 'woocommerce_customer_allowed_session_meta_keys', array( $this, 'add_session_meta_keys' ) );
}