Quantcast
Channel: WordPress Developer Resources | Developer.WordPress.org
Viewing all articles
Browse latest Browse all 15

wp_unique_prefixed_id()

$
0
0

It is similar to wp_unique_id, but each prefix has its own internal ID counter to make each prefix independent from each other. The ID starts at 1 and increments on each call. The returned value is not universally unique, but it is unique across the life of the PHP process and it’s stable per prefix.


Viewing all articles
Browse latest Browse all 15

Trending Articles