Function
Set the errors.
tml_set_errors( WP_Error $errors )
Parameters
-
$errorsWP_Error - The errors.
Source
function tml_set_errors( WP_Error $errors ) {
$form = tml_get_form();
if ( ! $form ) {
return;
}
$form->set_errors( $errors );
}
Uses
Used by
Changelog
| Version | Description |
|---|---|
| 7.0 | Introduced. |