Validate::sanitize_array_map_boolean( null|array $value = null )

Description #

Sanitize field value and return only boolean.

Parameters #

  • $value
    null | array (Optional) Array to sanitize. Default value: null

Source #

File: lib/class-validate.php

	public static function sanitize_array_map_boolean( $value = null ) {
		if ( ! empty( $value ) ) {
			return array_map( array( __CLASS__, 'sanitize_boolean' ), $value );
		}
	}

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