AnsPress_Validation::sanitize_text_field( string $field )

Description #

Sanitize text fields

Parameters #

  • $field
    string (Required) Field name.

Changelog #

VersionDescription
2.0.1Introduced.

Source #

File: includes/class/validation.php

	private function sanitize_text_field( $field ) {
		if ( isset( $this->fields[ $field ] ) ) {
			$this->fields[ $field ] = sanitize_text_field( $this->fields[ $field ] );
		}
	}

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