This topic contains 5 reply and 2 voices, and was last updated by Tareq Hasan 6 years, 6 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
May 2, 2013 at 1:43 pm 3092
Tareq Hasan Hello, Is there a way / something you guys could write that sends an email to the author and admin when a comment is made on a post? Thank you.
May 2, 2013 at 3:29 pm 3100
Tareq Hasan Tareq Hasan

I think WP already sends email to the post author if someone lefts a comment on his post.

May 3, 2013 at 2:30 am 3118
ronilagin ronilagin

It doesn’t seem to support custom post types. I was hoping your plugin would solve this issue though.

May 3, 2013 at 5:54 am 3122
Tareq Hasan Tareq Hasan

So you are saying WP doesn’t send emails for custom post type comment?

May 3, 2013 at 6:33 am 3130
ronilagin ronilagin

That’s correct. The admins receive emails, but the author doesn’t.

May 3, 2013 at 11:20 am 3132
Tareq Hasan Tareq Hasan

comment
In the WordPress discussion settings if you have the first one checked, the post author always gets the email..

For the second one, if any comment is not approved, it sends an email to the admin.

Also sending approved comments to the admin, you can use this snippet:
[php]
function wpufe_notify_comment( $comment_ID, $approved ) {
if ( $approved != ‘0’ ) {
wp_notify_moderator( $comment_ID );
}
}

add_action( ‘comment_post’, ‘wpufe_notify_comment’, 10, 2 );
[/php]

Viewing 5 Posts - 1 through 5 (of 5 total)