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:

Description

Validates that a UUID is valid.

Related Functions

wp_list_widgets, wp_is_mobile, wp_admin_css_uri, wp_list_pluck, wp_generate_uuid4

Top Google Results

User discussions

wpseek mobile