Filter: um_fields_without_metakey

apply_filters( 'um_fields_without_metakey', $field_types ) → {array}

Filters the field types without meta key.

Parameters:
Name Type Description
$field_types array

Field types.

Since:
  • 1.3.x
Source:
Returns:

Field types.

Type
array
Example

It adds 'location' and 'distance' field-types to fields without metakeys array.

function my_custom_um_fields_without_metakey( $field_types ) {
    $field_types[] = 'location';
    $field_types[] = 'distance';
    return $field_types;
}
add_filter( 'um_fields_without_metakey', 'my_custom_um_fields_without_metakey' );