Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFieldTypes

AbstractFieldType::process_options │ public │ WC 1.0

Processes and validates the options supplied during field registration.

Метод класса: AbstractFieldType{}

Хуков нет.

Возвращает

array|false. The updated $field_data array, or false if an error should prevent registration.

Использование

$AbstractFieldType = new AbstractFieldType();
$AbstractFieldType->process_options( $field_data, $options );
$field_data(массив) (обязательный)
The field data array to be updated.
$options(массив) (обязательный)
The options supplied during field registration.

Код AbstractFieldType::process_options() WC 11.2.2

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 );
}