Automattic\WooCommerce\Blocks\Domain\Services
CheckoutFields::init()
Initialize hooks.
Method of the class: CheckoutFields{}
No Hooks.
Returns
null
. Nothing (null).
Usage
$CheckoutFields = new CheckoutFields(); $CheckoutFields->init();
CheckoutFields::init() CheckoutFields::init code WC 9.8.5
public function init() { add_filter( 'woocommerce_get_country_locale_default', array( $this, 'update_default_locale_with_fields' ) ); 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' ) ); }