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() {
	if ( ! empty( $this->errors ) ) {
		return true;
	}
	return false;
}

Changelog

VersionDescription
5.1.0Introduced.

User Contributed Notes

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