apply_filters( 'um_admin_pre_save_fields_hook', $submission_data ) → {array}
Filters the field data before save in Form Builder.
Parameters:
Name | Type | Description |
---|---|---|
$submission_data |
array | Update field handler data. Already sanitized here. |
- Since:
- 1.3.x
- Source:
Returns:
Update field handler data.
- Type
- array
Example
function my_custom_um_admin_pre_save_fields_hook( $submission_data ) {
$submission_data['post']['{field_key}'] = {new value};
return $submission_data;
}
add_filter( 'um_admin_pre_save_fields_hook', 'my_custom_um_admin_pre_save_fields_hook' );