在 network/multisite 上编辑 Wordpress 邀请电子邮件
Edit Wordpress invite email on network/multisite
如何编辑 wordpress 多站点在邀请新用户加入时发出的邀请电子邮件?
您可以使用 wpmu_signup_user_notification_email
and 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
}
如何编辑 wordpress 多站点在邀请新用户加入时发出的邀请电子邮件?
您可以使用 wpmu_signup_user_notification_email
and 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
}