Override user.php
-
I’d like to override
if ( ! wp_check_password( $password, $user->user_pass, $user->ID ) ) { return new WP_Error( 'incorrect_password', sprintf( /* translators: %s: email address */ __( '<strong>ERROR</strong>: The password you entered for the email address %s is incorrect.' ), '<strong>' . $email . '</strong>' ) . ' <a href="' . wp_lostpassword_url() . '">' . __( 'Lost your password?' ) . '</a>' );
To post the response to say:
__( '<strong>ERROR</strong>: The email or password is incorrect. Please try again.' ), '<strong>' . $email . '</strong>'
I thought simply changing the filter/function name and entering my text would override it, but it doesn’t seem to be working.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Override user.php’ is closed to new replies.