WPDev.one
Core Function
View Source on Trac ↗

wp_unique_id_from_values()

wp_unique_id_from_values( array $data, string $prefix = '' )

Generates a unique ID based on the structure and values of a given array.

Parameters 1 required

Name / Type Description
$data
array

The input array to generate an ID from.

Required
$prefix
string

Optional. A prefix to prepend to the generated ID. Default ''.

Return Value

(string)
The generated unique ID for the array.

Function Information

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