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