Reply To: bbPress 2.6 Release Candidate 3
Well we’re all waiting for breaking news for bbPress release or rc4 but online timesheets it is not. And seeing as user onlinetimesheets’ system is built on Microsoft ASP.Net 4 it seems unlikely to make much use of bbPress..
Now, could we get the bbPress on wordpress.org to add the Plugin name (Forum title) to the email alerts? It’s tiring getting all the alerts with no context about which plugin they refer to.
Something like this should do it:
function add_the_plugin_name_please( $message, $reply_id, $topic_id ){
$topic_title = strip_tags( bbp_get_topic_title( $topic_id ) );
$forum_title = bbp_get_topic_forum_title($topic_id);
$messageheader = sprintf( __( 'New post in Forum "%1$s", Topic "%2$s".', 'wordpress-org' ),
$forum_title,
$topic_title
);
$messagefooter .= "\r\n" . "\r\n" . __('Thankyou for participating on wordpress.org', 'wordpress-org' );
return $messageheader . "\r\n" . "\r\n" . $message . "\r\n" . $messagefooter;
}
add_filter( 'bbp_subscription_mail_message', 'add_the_plugin_name_please', 10, 3);