Automattic\WooCommerce\Blocks\Domain\Services
CheckoutFields::process_field_options
Processes the options for a field type and returns the new field_options array.
Метод класса: CheckoutFields{}
Хуков нет.
Возвращает
array|false. The updated $field_data array, or false if an error should prevent registration.
Использование
// private - только в коде основоного (родительского) класса $result = $this->process_field_options( $field_data, $options );
- $field_data(массив) (обязательный)
- The field data array to be updated.
- $options(массив) (обязательный)
- The options supplied during field registration.
Код CheckoutFields::process_field_options() CheckoutFields::process field options WC 11.3.0
private function process_field_options( $field_data, $options ) {
return $this->get_field_type( $field_data )->process_options( $field_data, $options );
}