WP_Error::has_errors
Verifies if the instance contains errors.
Method of the class: WP_Error{}
No Hooks.
Returns
bool. If the instance contains errors.
Usage
$WP_Error = new WP_Error(); $WP_Error->has_errors();
Changelog
| Since 5.1.0 | Introduced. |
WP_Error::has_errors() WP Error::has errors code WP 7.1
public function has_errors() {
return (bool) $this->errors;
}