Automattic\WooCommerce\Blocks\Domain\Services
CoreCheckoutFields::get_keys
Returns the keys of all core fields.
Method of the class: CoreCheckoutFields{}
No Hooks.
Returns
array. An array of field keys.
Usage
$result = CoreCheckoutFields::get_keys();
CoreCheckoutFields::get_keys() CoreCheckoutFields::get keys code WC 11.3.0
public static function get_keys() {
return [
'email',
'country',
'first_name',
'last_name',
'company',
'address_1',
'address_2',
'city',
'state',
'postcode',
'phone',
];
}