Automattic\WooCommerce\Blocks\Domain\Services

CheckoutFields::add_fields_data()publicWC 1.0

Add fields data to the asset data registry.

Method of the class: CheckoutFields{}

No Hooks.

Return

null. Nothing (null).

Usage

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

CheckoutFields::add_fields_data() code WC 9.0.1

public function add_fields_data() {
	$this->asset_data_registry->add( 'defaultFields', array_merge( $this->get_core_fields(), $this->get_additional_fields() ) );
	$this->asset_data_registry->add( 'addressFieldsLocations', $this->fields_locations );
}