Automattic\WooCommerce\Blocks\Domain\Services
CheckoutFields::process_field_options
Processes the options for a field type and returns the new field_options array.
Method of the class: CheckoutFields{}
No Hooks.
Returns
array|false. The updated $field_data array, or false if an error should prevent registration.
Usage
// private - for code of main (parent) class only $result = $this->process_field_options( $field_data, $options );
- $field_data(array) (required)
- The field data array to be updated.
- $options(array) (required)
- The options supplied during field registration.
CheckoutFields::process_field_options() CheckoutFields::process field options code WC 11.2.2
private function process_field_options( $field_data, $options ) {
return $this->get_field_type( $field_data )->process_options( $field_data, $options );
}