WP_Error::get_error_code()
Retrieve first error code available.
Description Description
Return Return
(string|int) Empty string, if no error codes.
Source Source
File: wp-includes/class-wp-error.php
public function get_error_code() { $codes = $this->get_error_codes(); if ( empty( $codes ) ) { return ''; } return $codes[0]; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |