Trait_Has_Unique_Id
Trait for allowing a block to retrieve a unique ID string for its particular rendering.
Table of Contents
Methods
- get_unique_id() : string
- Get a unique ID string.
Methods
get_unique_id()
Get a unique ID string.
public
get_unique_id() : string
This will never output the same string twice in a single WordPress execution. Please note, this functionality is only applicable to front end output because editors use multiple WordPress executions.
Return values
string —A unique ID.