WP_Error::has_errors()

Verify if the instance contains errors.


Description


Return

(bool)


Top ↑

Source

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

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

Top ↑

Changelog

Version Description
5.1.0 Introduced.