如何在邀请新用户加入时编辑wordpress多站点发出的邀请电子邮件?
答案 0 :(得分:2)
您可以使用wpmu_signup_user_notification_email
和wpmu_signup_user_notification_subject
过滤器替换邮件内容和主题。
add_filter( 'wpmu_signup_user_notification_subject', 'my_activation_email_subject', 10, 1 );
function my_activation_email_subject($subject) {
// return your subject
}
add_filter('wpmu_signup_user_notification_email', 'my_activation_email_message', 10, 4);
function my_activation_email_message($message, $user, $user_email, $key) {
// return your template
}