apply_filters( 'um_admin_pre_save_field_to_form', $field_args ) → {array}
Filters the field options before save to form 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
function my_custom_um_admin_pre_save_field_to_form( $field_args ) {
$field_args['metakey'] = {new_metakey};
return $field_args;
}
add_filter( 'um_admin_pre_save_field_to_form', 'my_custom_um_admin_pre_save_field_to_form' );