WP_Error::has_errors()
Verifies if the instance contains errors.
Return Return
(bool) If the instance contains errors.
Source Source
File: wp-includes/class-wp-error.php
public function has_errors() { if ( ! empty( $this->errors ) ) { return true; } return false; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |