I've got a site using the User Submitted Photos plugin, with some modifications.
I'm capturing the user's email when they submit a photo to my site, which then gets set as a draft post.
I mass approve posts a few times a day, and I need a way to send an email to the users when their post is approved.
So far it looks like I need to use the publish_post hook, but there's no documentation on it so I don't really understand how to use it.
I've got the email in a meta field, so my only real problem is pulling that when a post gets published.
Here's how I imagine it working is pseudo code...
Function sendEmail id = Post ID email = get_post_meta(id, 'email') //code to send email here
So, is publish_post the right hook to be using here and if so, how do I get the post ID of the post being published?
Thanks everyone for your help