Earlier today I was working on a user-account class that talks to an api and needed to get the associated user_id from the returned value. All I had to from was a custom user_meta value and the meta_key. I figured there would be a wp function called get_user_id_by_meta, or something similar, but I didn’t find one. So, I made one.
This function is rather simple, but could easily be much more. This function is actually a method in a class so the naming convention is safe. However, if you plan to use it outside of a class I suggest that you change the name.
Get a WordPress users id from meta_key and meta_value:
If you found this helpful please let me know. If you have any questions, comments, or a more efficient way let me know.
This was my first full month of a new camera, well a new phone which has a much better camera! So here you have a lot more random pics than recent months. I can only expect that December will be the same. I actually attempted to do a daily mug shot for about two or three days. I couldn’t handle that many pictures of myself… It would be cool to see a time line of myself over a year or two, but I don’t think I could post each pic. (seriously who wants to see that much of my face, not me :)
I was browsing through my drawings this afternoon and saw this one. Sometimes it’s more apparent that my drawing start off as nothing and evolve as they go on, and I this is definitely one of them.
I started by drawing a box and then it just started morphing into more. I really like drawing little odd characters that seem like they are stuck in a fishbowl.
This month ended with me getting a new phone so I was really excited about better picture quality and a faster camera. My old phone was so slow that the camera wouldn’t even open. So you can expect a lot more useless pictures in the next couple of months.
Here are my totally random pics from August 2011! :p
Here are my totally random pics from July 2011! :p Not much this month, I guess you could say I’ve been busy!