wp_is_uuid
wp_is_uuid ( $uuid, $version = null )
Parameters:- (mixed) uuid UUID to check.
- (int) version Specify which version of UUID to check against. Default is none, to accept any UUID version. Otherwise, only version allowed is `4`.
Returns:- (bool) The string is a valid UUID or false on failure.
Defined at: - Introduced in WordPress: 4.9.0
- Deprecated in WordPress: —
Description
Validates that a UUID is valid.