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