Filter: hivepress/v1/models/{model_name}/errors

apply_filters( 'hivepress/v1/models/{model_name}/errors', $errors, $model ) → {array}

Filters the model 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 model name (e.g. listing). You can check the available models in the includes/models directory of HivePress.

Parameters:
Name Type Description
$errors array

Model errors.

$model object

Model object.

Source:
Returns:

Model errors.

Type
array