Guest User

Untitled

a guest
Nov 29th, 2017
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. add_filter("retrieve_password_message", "custom_password_reset", 99, 4);
  2. function custom_password_reset($message, $key, $user_login, $user_data ) {
  3.  
  4. $message = __('Someone has requested a password reset for the following account:') . "<br><br>";
  5. $message .= network_home_url( '/' ) . "<br><br>";
  6. $message .= sprintf(__('%s'), $user_data->user_email) . "<br><br>";
  7. $message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "<br><br>";
  8. $message .= __('To reset your password use the link below:') . "<br><br>";
  9. $message .= "<a href=".network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') .">Click here to reset your password</a><br><br>";
  10. $message .= "Or copy and paste this link into your browser:<br><br>".network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login')."<br><br>";
  11.  
  12. return $message;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment