Change “Lost Your Password?” Text In WordPress

Share Now

Share on facebook
Share on pinterest
Share on twitter
Share on linkedin
Share on email

#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