Email notification – New Doc
-
Hi @dcavins,
I’m trying to add a function to notify the admin each time a new document is saved. How could I add the author’s name?
`function send_email_new_doc($post)
{
$emails = get_option(‘admin_email’);
$title = wp_strip_all_tags(get_the_title($post->ID));
$url = get_permalink($post->ID);
$message = “LINK: \n{$url}”;wp_mail($emails, “HERE: {$title}”, $message);
}Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Email notification – New Doc’ is closed to new replies.