admin管理员组

文章数量:1289362

I would like to edit the text that is displayed when the user enters an incorrect password on my site. The text is in the location \wp-includes\user.php. I have tried editing the file via Filezilla but it says I do not have permission to do so.

The code I would like to change is:

if ( ! wp_check_password( $password, $user->user_pass, $user->ID ) ) {
        return new WP_Error(
            'incorrect_password',
            sprintf(
                /* translators: %s: User name. */
                __( '<strong>Error</strong>: The password you entered for the username %s is incorrect.' ),
                '<strong>' . $username . '</strong>'
            ) .
            ' <a href="' . wp_lostpassword_url() . '">' .
            __( 'Lost your password?' ) .
            '</a>'
        );
    }

Is there a filter I can hook into?

Thanks

本文标签: phpEdit incorrect password message WordPress