Retrieves all error codes.
Source
public function get_error_codes() {
if ( ! $this->has_errors() ) {
return array();
}
return array_keys( $this->errors );
}
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
| CARVIEW |
Retrieves all error codes.
public function get_error_codes() {
if ( ! $this->has_errors() ) {
return array();
}
return array_keys( $this->errors );
}
| Uses | Description |
|---|---|
WP_Error::has_errors()wp-includes/class-wp-error.php | Verifies if the instance contains errors. |
| Used by | Description |
|---|---|
login_header()wp-login.php | Outputs the login page header. |
WP_Error::get_error_code()wp-includes/class-wp-error.php | Retrieves the first error code available. |
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.