WC_Settings_API::get_field_type( array $field )
Get a fields type. Defaults to “text” if not set.
Description Description
Parameters Parameters
- $field
-
(Required) Field key.
Return Return
(string)
Source Source
File: includes/abstracts/abstract-wc-settings-api.php
public function get_field_type( $field ) { return empty( $field['type'] ) ? 'text' : $field['type']; }