105 | | wp_mail( $new_user_email, sprintf( __( '[%s] Joining confirmation' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), sprintf( $message, get_option( 'blogname' ), home_url(), wp_specialchars_decode( translate_user_role( $role['name'] ) ), home_url( "/newbloguser/$newuser_key/" ) ) ); |
| 105 | $new_user_invite_email = array( |
| 106 | 'to' => $new_user_email, |
| 107 | 'subject' => __( '[%s] Joining confirmation' ), |
| 108 | 'message' => $message, |
| 109 | 'headers' => '', |
| 110 | ); |
| 111 | $new_user_invite_email = apply_filters( 'password_change_email', $new_user_invite_email, $user, $userdata ); |
| 112 | $new_user_invite_email['message'] = str_replace( '%1$s', get_option( 'blogname' ), $new_user_invite_email['message'] ); |
| 113 | $new_user_invite_email['message'] = str_replace( '%2$s', home_url(), $new_user_invite_email['message'] ); |
| 114 | $new_user_invite_email['message'] = str_replace( '%3$s', wp_specialchars_decode( translate_user_role( $role['name'] ) ), $new_user_invite_email['message'] ); |
| 115 | $new_user_invite_email['message'] = str_replace( '%4$s', home_url( "/newbloguser/$newuser_key/" ), $new_user_invite_email['message'] ); |
| 116 | |
| 117 | wp_mail( $new_user_invite_email['to'], sprintf( $new_user_invite_email['subject'], $blog_name ), $new_user_invite_email['message'], $new_user_invite_email['headers'] ); |