WP_Error::has_errors(): bool

In this article

Verifies if the instance contains errors.

Return

bool If the instance contains errors.

Source

public function has_errors() {
	return (bool) $this->errors;
}

Changelog

VersionDescription
5.1.0Introduced.

User Contributed Notes

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