You should ask on the bbPress forums regarding limiting the topic size.
For private messages and also Activity update size restrictions I’ve just added those restriction capabilities into my plugin https://wordpress.org/plugins/bp-messaging-control/, I’d welcome your feedback, but make it on the plugin forum, this ones only for BuddyPress.
Ah Debora, I might have not got the full jist of your message, that new setting will restrict the original message length, including the length of the email, but the email will still have that content. Tomorrow I’m going to explore ways of reducing the email content to just the first few words and a link to view the whole message.
From the codex…
This will limit the BuddyPress message content to 50 words.
Change 50
to whatever integer you want.
function bp_email_content_length( $formatted_tokens, $tokens, $obj ) {
$formatted_tokens['usermessage'] = wp_trim_words( $formatted_tokens['usermessage'], 50, '...' );
return $formatted_tokens;
}
add_filter( 'bp_email_set_tokens', 'bp_email_content_length', 10, 3 );
Thanks Shanebp, I’ve added this to my plugin