Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFieldTypes
AbstractFieldType::process_options
Processes and validates the options supplied during field registration.
Method of the class: AbstractFieldType{}
No Hooks.
Returns
array|false. The updated $field_data array, or false if an error should prevent registration.
Usage
$AbstractFieldType = new AbstractFieldType(); $AbstractFieldType->process_options( $field_data, $options );
- $field_data(array) (required)
- The field data array to be updated.
- $options(array) (required)
- The options supplied during field registration.
AbstractFieldType::process_options() AbstractFieldType::process options code WC 11.3.0
final public function process_options( array $field_data, array $options ) {
$field_data['attributes'] = $this->process_attributes( $field_data['id'], $field_data['attributes'] );
return $this->process_type_options( $field_data, $options );
}