Verifies if the instance contains errors.

Return Return

(bool) If the instance contains errors.

Top ↑

Source Source

File: wp-includes/class-wp-error.php

	public function has_errors() {
		if ( ! empty( $this->errors ) ) {
			return true;
		return false;

Top ↑

Changelog Changelog

Version Description
5.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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