WP_Error::get_error_codes

Advertisement

Summery Summery

Retrieve all error codes.

Syntax Syntax

WP_Error::get_error_codes()

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Advertisement

Leave a Reply