Home Forums Plugin Support WP User Frontend Pro Send email on comments

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  Tareq Hasan 5 years, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #3092

    ronilagin
    Participant
    Post count: 24

    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.

    #3100

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #3118

    ronilagin
    Participant
    Post count: 24

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

    #3122

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #3130

    ronilagin
    Participant
    Post count: 24

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

    #3132

    Tareq Hasan
    Keymaster
    Post count: 2831

    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 6 posts - 1 through 6 (of 6 total)

The topic ‘Send email on comments’ is closed to new replies.