WC_Settings_API::get_field_type
Get a fields type. Defaults to "text" if not set.
Method of the class: WC_Settings_API{}
No Hooks.
Returns
String
.
Usage
$WC_Settings_API = new WC_Settings_API(); $WC_Settings_API->get_field_type( $field );
- $field(array) (required)
- Field array.
WC_Settings_API::get_field_type() WC Settings API::get field type code WC 9.9.3
public function get_field_type( $field ) { return empty( $field['type'] ) ? 'text' : $field['type']; }