• Resolved facem Web

    (@shojikama)


    Hi there,

    I have a little problem with one of the function of wp-login.php : retrieve_password();

    the line :
    $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n";
    give problems with some emails services that can’t correctly rewrite the URL. For resolve that problem I have to change this line to :
    $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . "\r\n";
    (I just removed the > in the end)

    Is there a way to override the retrieve_password() function and change this specific line ?

    Thanks

    • This topic was modified 6 years, 11 months ago by facem Web.
    • This topic was modified 6 years, 11 months ago by facem Web.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Please use the ‘retrieve_password_message’ filter to make such changes. You must not change core code. There’s generally a filter or action hook to access anything you may need to change.

    Thread Starter facem Web

    (@shojikama)

    Thanks, that’s exactly what I was seaarching for, I only changed the core until I get that solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘override wp-login.php functions’ is closed to new replies.