AnsPress_Validation::is_email( string $field )

Description #

Parameters #

  • $field
    string (Required)

Source #

File: includes/class/validation.php

	private function is_email($field) {

		$email = is_email( $this->fields[$field] );

		if ( ! $email ) {
			$this->errors[$field] = __( 'Not a valid email address', 'anspress-question-answer' );
		} else {
			$this->fields[$field] = $email;
		}
	}

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