Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFieldTypes

AbstractFieldType::process_type_options │ protected │ WC 1.0

Processes the type-specific options supplied during field registration.

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

Хуков нет.

Возвращает

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

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->process_type_options( $field_data, $options );
$field_data(массив) (обязательный)
The field data array, with the options common to every type already applied.
$options(массив) (обязательный)
The options supplied during field registration.

Код AbstractFieldType::process_type_options() WC 11.2.2

protected function process_type_options( array $field_data, array $options ) {
	return $field_data;
}