Support » Plugin: Custom Comment Notifications » Possible to only email the comment excerpt?

Viewing 2 replies - 1 through 2 (of 2 total)
  • wzshop

    (@wzshop)

    Fixed it, had to change some hard coded work.. Would be nice if this would become an extra function in yr plugin:)

    in the file custom-comment-notifications.php, in the plugin folder, around line 562 i changed the ‘if($email’ lines into:

    //Custom excerpt function
    $commentexcerptcustom = get_comment_excerpt( $comment->comment_ID );
    $commentexcerptcustom = str_replace('…', '...', $commentexcerptcustom);
    
            if($email_format === 'html') {
                $C_CONTENT = str_replace("\r\n", "<br/>", $commentexcerptcustom);
            } else {
                $C_CONTENT = $commentexcerptcustom;
            }

    cheers

    Plugin Author scweber

    (@scweber)

    This has been implemented in the latest update. Expect it to be pushed live in the next day or so.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible to only email the comment excerpt?’ is closed to new replies.