Guest User

Untitled

a guest
Jan 26th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. add_filter( 'wp_new_user_notification_email' , 'edit_user_notification_email', 10, 3 );
  2.  
  3. function edit_user_notification_email( $wp_new_user_notification_email, $user, $blogname ) {
  4.  
  5. $message = wp_login_url() . "rn";
  6. $message .= sprintf(__( 'Username: %s' ), $user->user_login ) . "rn";
  7. $message .= sprintf(__( 'Password: %s' ), $user->user_pass );
  8. $wp_new_user_notification_email['message'] = $message;
  9.  
  10. return $wp_new_user_notification_email;
  11.  
  12. }
Add Comment
Please, Sign In to add comment