Filter: um_get_field__{$key}

apply_filters( 'um_get_field__{$key}', $field_data ) → {array}

Filters the field data by the metakey. Where $key is the field's metakey.

Parameters:
Name Type Description
$field_data array

Field data.

Since:
  • 1.3.x
Source:
Returns:

Field data.

Type
array
Example

Disable 'first_name' field.

function my_custom_disable_first_name( $field_data ) {
    $field_data['disabled'] = ' disabled="disabled" ';
    return $field_data;
}
add_filter( 'um_get_field__first_name', 'my_custom_disable_first_name' );