Looks like I have a WordPress filter in place for the subject/title. It’s going to be either “Membership Denied” or “Memebership Approved”. $message is going to be one of the messages on our options screen, so you probably won’t need to do much there in the filter.
$mailme = array(
'user_email' => $user->data->user_email,
'user_subject' => $subject,
'user_message' => str_replace( '[username]', $user->data->user_login, $message )
);
$mailme_filtered = apply_filters( 'bpro_hook_before_email', $mailme, $user );
Example override:
`function dimono_custom_subject( $mail_args ) {
$mail_args[‘user_subject’] = ‘Some custom value’;
return $mail_args;
}
add_filter( ‘bpro_hook_before_email’, ‘dimono_custom_subject’ );
I know I have attempts for the HTML email part, and I know I was recently checking on it, like two weeks ago, but I can’t recall if I for sure fixed it or not. If I have, it hasn’t been rolled out in the 4.2.x line, but can be if necessary. Otherwise it’d not be till 4.3.0
Thread Starter
Dimono
(@dimono)
Hello,
Thanks for your quick response. I found another solution to change headers. I translated the plugin and added the language files in wp-content/languages/plugins . Sorry I didn’t think of that before.
HTML would still be great. That way I can style my emails the same as BuddyPress and other plugins that send emails.
awesome to hear you got a solution for your own thing. My plan is to integrate with the BP email stuff in the long run, just haven’t had a chance to fully sit down and work out necessary steps and changes needed.