AnsPress_Validation::actions()

Description #

Field is being checked and sanitized

Changelog #

VersionDescription
2.0.1Introduced.

Source #

File: includes/class/validation.php

	private function actions() {

		foreach ( (array) $this->args as $field => $actions ) {
			if ( isset( $actions['sanitize'] ) ) {
				$this->sanitize( $field, $actions['sanitize'] );
			}

			if ( isset( $actions['validate'] ) ) {
				$this->validate( $field, $actions['validate'] );
			}

			if ( isset( $actions['error'] ) ) {
				$this->append_errors( $field, $actions['error'] );
			}
		}

	}

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