dozent_add_form_errors( array $errors = array() )


Parameters

$errors

(array) (Optional) Add form error manully to show in the form error function

Default value: array()


Source

File: includes/form-functions.php

    function dozent_add_form_errors($errors = [])
    {

        add_filter('dozent_form_errors', function () use ($errors) {
            return $errors;
        });

    }


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.