WP_Error::get_error_codes()
Retrieve all error codes.
Description Description
Return Return
(array) List of error codes, if available.
Source Source
File: wp-includes/class-wp-error.php
public function get_error_codes() { if ( ! $this->has_errors() ) { return array(); } return array_keys( $this->errors ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |