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.
Return
String
.
Usage
$WC_Settings_API = new WC_Settings_API(); $WC_Settings_API->get_field_type( $field );
- $field(array) (required)
- Field key.
WC_Settings_API::get_field_type() WC Settings API::get field type code WC 9.3.3
public function get_field_type( $field ) { return empty( $field['type'] ) ? 'text' : $field['type']; }