apply_filters( 'um_get_field_{$type}', $field_data ) → {array}
Filters the field data by the field type. Where $type is the field's type.
Parameters:
Name | Type | Description |
---|---|---|
$field_data |
array | Field data. |
- Since:
- 2.6.8 Added support for all field type.
- Source:
Returns:
Field data.
- Type
- array
Example
function my_custom_get_field_date( $field_data ) {
$field_data['disabled'] = ' disabled="disabled" ';
return $field_data;
}
add_filter( 'um_get_field_date', 'my_custom_get_field_date' );