I have user display_name and with this I want to get the id of that user.
So, how can I get the user id?
|
|
|
Use
Just answered one very similar to this: How we can get the author ID by its Name |
|||
|
|
|
You can use the following function:
This is the same code |
|||||||||
|
|
Completely untested, but I can't see anything in the code why it wouldn't work to use
|
|||
|
|