Filter: um_admin_pre_save_field_to_db

apply_filters( 'um_admin_pre_save_field_to_db', $field_args ) → {array}

Filters the field options before save to DB (globally) on the update field in Form Builder.

Parameters:
Name Type Description
$field_args array

Field Options.

Since:
  • 1.3.x
Source:
Returns:

Field Options.

Type
array
Example

Force change the field's metakey when store it to DB globally.

function my_custom_um_admin_pre_save_field_to_db( $field_args ) {
    $field_args['metakey'] = {new_metakey};
    return $field_args;
}
add_filter( 'um_admin_pre_save_field_to_db', 'my_custom_um_admin_pre_save_field_to_db' );