Form::add_error( string $code, string $msg = '' )
Description #
Add an error to form object.
Parameters #
- $codestring (Required) Error code.
- $msgstring (Optional) Error message. Default value: ''
Source #
File: lib/class-form.php
public function add_error( $code, $msg = '' ) { $this->errors[ $code ] = $msg; }
Expand full source code Collapse full source code View on GitHub: lib/class-form.php:344
Add your comment