Change “Lost Your Password?” Text In WordPress

Share Now

#Add the code below in functions.php file

function change_lost_your_password ($text) {
if ($text == 'Lost your password?'){
    $text = 'Forgot your password?';
 }
    return $text;
 }
add_filter( 'gettext', 'change_lost_your_password' );
Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert