Used By
Used By | Description |
---|---|
wp-login.php: login_header() | Output the login page header. |
wp-includes/class-wp-error.php: WP_Error::get_error_codes() | Retrieve all error codes. |
Verify if the instance contains errors.
(bool)
File: wp-includes/class-wp-error.php
public function has_errors() { if ( ! empty( $this->errors ) ) { return true; } return false; }
Version | Description |
---|---|
5.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_error/has_errors