I’ve got another question for you guys!
I need the following thing:
- User creates post (automatically sets it to pending for approval)
- Send the user an email with a confirmation link
- The User clicks the link
- The posts will be set to approved and will be posted automatically
How can this be created? Are there hooks in WordPress available to create such a confirmation link?
You need a function that hook into post status transitions and send and email containing a link with some verification variables and a function that takes that variables, check them and if all ok update posts status.
Following code I think is self-explanatory, and comments give additional help:
Thats, all. Please note code is untested.