Filter: hivepress/v1/forms/{form_name}/errors

apply_filters( 'hivepress/v1/forms/{form_name}/errors', $errors, $form ) → {array}

Filters the form validation errors. With this hook, you can implement custom validation checks and add new error messages to the filtered array. The dynamic part of the hook refers to the form name (e.g. listing_update). You can check the available forms in the includes/forms directory of HivePress.

Parameters:
Name Type Description
$errors array

Form errors.

$form object

Form object.

Source:
Returns:

Form errors.

Type
array