acf_get_field_type_label()
acf_get_field_type_label
This function will return the label of a field type
No Hooks.
Returns
(Array).
Usage
acf_get_field_type_label( $name );
- $name
- .
Default:''
Changelog
| Since 5.0.0 | Introduced. |
acf_get_field_type_label() acf get field type label code ACF 6.0.4
function acf_get_field_type_label( $name = '' ) {
$label = acf_get_field_type_prop( $name, 'label' );
return $label ? $label : '<span class="acf-tooltip-js" title="' . __( 'Field type does not exist', 'acf' ) . '">' . __( 'Unknown', 'acf' ) . '</span>';
}