WP_Error::get_error_codes(): array In this article Table of ContentsReturn Source Related Changelog ↑ Back to top Retrieves all error codes. Return array List of error codes, if available. Source public function get_error_codes() { if ( ! $this->has_errors() ) { return array(); } return array_keys( $this->errors ); } View all references View on Trac View on GitHub Related UsesDescriptionWP_Error::has_errors()wp-includes/class-wp-error.phpVerifies if the instance contains errors. Used byDescriptionlogin_header()wp-login.phpOutputs the login page header. WP_Error::get_error_code()wp-includes/class-wp-error.phpRetrieves the first error code available. Changelog VersionDescription2.1.0Introduced. User Contributed Notes You must log in before being able to contribute a note or feedback.
User Contributed Notes
You must log in before being able to contribute a note or feedback.