WordPress at Your Fingertips
function is not described

WC_Settings_API::get_field_type() public WC 1.0

Get a fields type. Defaults to "text" if not set.

{} It's a method of the class: WC_Settings_API{}

No Hooks.

Return

String.

Usage

$WC_Settings_API = new WC_Settings_API();
$WC_Settings_API->get_field_type( $field );
$field(array) (required)
Field key.

Code of WC_Settings_API::get_field_type() WC 5.5.2

<?php
public function get_field_type( $field ) {
	return empty( $field['type'] ) ? 'text' : $field['type'];
}