apply_filters( 'um_admin_field_update_error_handling', $errors, $submission_data ) → {array}
Filters the validation errors on the update field in Form Builder.
Parameters:
Name | Type | Description |
---|---|---|
$errors |
null | array | Errors list. It's null by default. |
$submission_data |
array | Update field handler data. |
- Since:
- 1.3.x
- Source:
Returns:
Errors list.
- Type
- array
Example
function my_custom_um_admin_field_update_error_handling( $errors, $submission_data ) {
$errors['{field_key}'] = {Error text};
return $errors;
}
add_filter( 'um_admin_field_update_error_handling', 'my_custom_um_admin_field_update_error_handling', 10, 2 );