AnsPress_Form::error_messages()

Description #

Source #

File: includes/class/form.php

	private function error_messages() {
		if ( isset( $this->errors[$this->field['name']] ) ) {
			$this->output .= '<div class="ap-form-error-messages">';

			foreach ( $this->errors[$this->field['name']] as $error ) {
				$this->output .= '<p class="ap-form-error-message">'. $error .'</p>';
			}

			$this->output .= '</div>';
		}
	}

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