Validate::sanitize_text_field( null|string|array $value = null )
Description #
Sanitize field value using sanitize_text_field.
Parameters #
- $valuenull | string | array (Optional) String or array to sanitize. Default value: null
Source #
File: lib/class-validate.php
public static function sanitize_text_field( $value = null ) { if ( null !== $value ) { return is_array( $value ) ? array_map( 'sanitize_text_field', $value ) : sanitize_text_field( $value ); } }
Expand full source code Collapse full source code View on GitHub: lib/class-validate.php:31
Add your comment