Retrieves all error codes.

Return Return

(array) List of error codes, if available.

Top ↑

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 );

Top ↑

Changelog Changelog

Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.