Automattic\WooCommerce\Blocks\Domain\Services
CheckoutFields::add_fields_data()
Add fields data to the asset data registry.
Метод класса: CheckoutFields{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$CheckoutFields = new CheckoutFields(); $CheckoutFields->add_fields_data();
Код CheckoutFields::add_fields_data() CheckoutFields::add fields data WC 9.4.2
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 ); }