View Categories

Filter notification of new comment email text to followers

If you have Board Following enabled, you can filter the text of the email that is sent to followers whenever a new topic is posted on a board.

In your functions.php file, or other suitable place, add the following:

/**
* Filter the notification email text for new comments to followers of a board
* @param $content - the original email content
* @param $post - the post object for the new topic
* @board_id - the ID of the board posted on
*/
function your_prefix_notification_new_comment_content( $content, $post, $comment ) {
// Add your new message content here
$content = 'My new message';
return $content;
}
add_filter( 'ctdb_follower_notification_new_comment_email', 'your_prefix_notification_new_comment_content', 10, 3 );