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

Description #

Sanitize field value using sanitize_title.

Parameters #

  • $value
    null | 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 );
		}
	}

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