WP_Error::get_error_codes(): array

Retrieves all error codes.


Return

array List of error codes, if available.


Top ↑

Source

File: wp-includes/class-wp-error.php. View all references

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

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