Looking at the login_header()
function, it appears that you can use the login_message
filter.
add_filter( 'login_message', 'wpse386695_change_message' );
function wpse386695_change_message( $message ) {
$message = str_replace(
'Your password has been reset',
__( 'The text you want to appear', 'plugin-text-domain' ),
$message
);
return $message;
}
Update
To replace the entire login_message
string with your own URL (as requested in the comments), you can do this instead:
add_filter( 'login_message', 'wpse386695_replace_message' );
function wpse386695_replace_message( $message ) {
$message="<p class="message reset-pass">"
. __( 'Your password has been reset.' )
. ' <a href="' . esc_url( 'https://example.com/my-login-url' )
. '">' . __( 'Log in' ) . '</a></p>'
return $message;
}
…replacing https://example.com/my-login-url
with the URL you need, of course.