WPDev.one
Core Function
View Source on Trac ↗

wp_is_uuid()

wp_is_uuid( mixed $uuid, mixed $version = null )

Validates that a UUID is valid.

Parameters 2 required

Name / Type Description
$uuid
mixed

UUID to check.

Required
int

$version Specify which version of UUID to check against. Default is none, to accept any UUID version. Otherwise, only version allowed is `4`.

Required

Return Value

(bool)
The string is a valid UUID or false on failure.

Function Information

Since Version
4.9.0
Source File
wp-includes/functions.php
Advertisement