How to change the default reset password message in wordpress

This is a little wordpress trick to change the default reset password message in wordpress.
If you want to change the reset password message you just need to edit your theme function.php file and paste below code.


wordpress-reset-password

function password_reset_message_text_change( $message ) {
    $action = $_REQUEST['action'];
    if( $action == 'lostpassword' ) {
        $message = '<p class="message">CUSTOM RESET PASSWORD MESSAGE</p>'; 
        return $message;
    }
    return;
}

Hope this trick will help you to change default reset password message in wordpress.

If you like this post please don’t forget to subscribe My Public Notebook for more useful stuff.

One Reply to “How to change the default reset password message in wordpress”

  1. your wordpress php code not work.

    function password_reset_message_text_change( $message ) {
    $action = $_REQUEST[‘action’];
    if( $action == ‘lostpassword’ ) {
    $message = ‘CUSTOM RESET PASSWORD MESSAGE’;
    return $message;
    }
    return;
    }

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.