Hi,
did you tried to use the Email API ?
Dashboard > Emails. From there you can modify the email title.
Other possibility
https://buddypress.org/support/topic/customizing-emails-template/
Thanks but I should be more specific. I want to show a default subject field in a private message that the user is composing. I want to avoid changing the core compose.php and use an add_filter instead if possible
http://mywebsite.com/profiles/username/messages/compose/?r=recipientname&_wpnonce=a4a33412e1
It would be easy if we could add something like subject=”message’ but not possible
It’s OK I figured it out. I filtered the bp_get_messages_subject_value
Thanks
// adds a dynamic post name to subject field in message compose
add_filter('bp_get_messages_subject_value', 'add_post_name', 1 );
function add_post_name($subject) {
echo $subject = "Brian was here again, whoohoo";
}
@danbp and @bdollin what if i want the subject to be populated by post title instead?
Thanks