I am working on a WordPress theme, and I would like an author to send an email to someone when a Protected Custom Post is published.
How to get the password of a Protected Post in functions.php?
I already created a metabox field (for the e-mail) and I am using PHPMailer()
in my functions.php file. The function works to get the name and the URL of the post, but I now need to send the password by email...