AnsPress_Form::have_error()

Description #

Check if current field have any error

Changelog #

VersionDescription
2.0.1Introduced.

Source #

File: includes/class/form.php

	private function have_error() {
		if ( isset( $this->field['name'] ) && isset( $this->errors[$this->field['name']] ) ) {
			return true;
		}

		return false;
	}

Leave a Reply

Your email address will not be published.

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

Add your comment