Apr 13, 2019 3:17 am
Hi Support,
When there is a reply to any topic, wpForo sends to subscribed users an email notification.
This email includes the link to the topic, to the reply and the first 100 characters of the body contents of the reply.
I need to reduce this intro to the reply's content to only the first 50 characters, how can I do that?
Thanks.
3 Replies
Apr 14, 2019 1:48 pm
Hi @jorgew,
There is a filter hook to change the post body length in emails:
'wpforo_email_notification_post_body_length'
Put this code in active WordPress theme functions.php file:
function wpforo_custom_post_body_lenght( $post_body_lenght ){
$post_body_lenght = 50;
return $post_body_lenght;
}
add_filter('wpforo_email_notification_post_body_length', 'wpforo_custom_post_body_lenght', 10);
Read this article to do it correctly:
How to Easily Add Custom Code in WordPress (without Breaking Your Site)