WP_Error::has_errors

Advertisement

Summery Summery

Verify if the instance contains errors.

Syntax Syntax

WP_Error::has_errors()

Return Return

(bool)

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
5.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?