WP_Error::get_error_code(): string|int In this article Table of ContentsReturn Source Related Changelog ↑ Back to top Retrieves the first error code available. Return string|int Empty string, if no error codes. Source public function get_error_code() { $codes = $this->get_error_codes(); if ( empty( $codes ) ) { return ''; } return $codes[0]; } View all references View on Trac View on GitHub Related UsesDescriptionWP_Error::get_error_codes()wp-includes/class-wp-error.phpRetrieves all error codes. Used byDescriptionWP_Error::get_all_error_data()wp-includes/class-wp-error.phpRetrieves all error data for an error code in the order in which the data was added. Plugin_Installer_Skin::hide_process_failed()wp-admin/includes/class-plugin-installer-skin.phpHides the process_failed error when updating a plugin by uploading a zip file. Theme_Installer_Skin::hide_process_failed()wp-admin/includes/class-theme-installer-skin.phpHides the process_failed error when updating a theme by uploading a zip file. login_header()wp-login.phpOutputs the login page header. WP_Error::get_error_message()wp-includes/class-wp-error.phpGets a single error message. WP_Error::get_error_data()wp-includes/class-wp-error.phpRetrieves the most recently added error data for an error code. WP_Error::add_data()wp-includes/class-wp-error.phpAdds data to an error with the given code. Show 2 moreShow less 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.