wp-includes/class-wp-error.php:76Retrieves all error codes.
array public function get_error_codes() { if ( ! $this->has_errors() ) { return array(); } return array_keys( $this->errors ); }Introduced in 2.1.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
array to list<int|string>.verified against sourcesrc/wp-includes/class-wp-error.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.