Thread Starter
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
This has been implemented in the latest update. Expect it to be pushed live in the next day or so.
(@wzshop)
6 years, 5 months ago
Hi,
Is it possible to send only the comment excerpt in stead of the whole comment?
Thanks,
Robbert
https://wordpress.org/plugins/custom-comment-notifications/