Validate::sanitize_textarea_field( null|string|array $value = null )

Description #

Sanitize textarea value using sanitize_textarea_field.

Parameters #

  • $value
    null | string | array (Optional) String or array to sanitize. Default value: null

Source #

File: lib/class-validate.php

43
44
45
46
47
public static function sanitize_textarea_field( $value = null ) {
    if ( null !== $value ) {
        return is_array( $value ) ? array_map( 'sanitize_textarea_field', $value ) : sanitize_textarea_field( $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