How to call the user profile picture URL or $attachment_id?
-
I swear I saw this function before, but now I can’t find it. I need a PHP function to return the URL (or even better, the “$attachment_id”) of the user profile photo.
I have a simple form for the users to create a new post, and I want the new post to automatically have the thumbnail set to be the same as the user image. I plan to accomplish this with the set_post_thumbnail function hooked into the post creation, but before I do any of that, I need the file information.
Thanks for the help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to call the user profile picture URL or $attachment_id?’ is closed to new replies.