The filter is there so you don’t need to edit wp-login.php
, simply use add_filter.
Put something like
function change_password_reset_mail_body($message, $key, $user_login, $user_data) {
return "click here: " . network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user_login ), 'login' );
}
add_filter("retrieve_password_message", "change_password_reset_mail_body", 10, 4)
In your theme’s functions.php.
Related Posts:
- How can I change the email sender name from wordpress to (myblogname) on the “lost password” email?
- Cant login, Password MUST be reset error, after reset
- How to login with email only no username?
- Check for correct username on custom login form
- What are the differences between wp_users and wp_usermeta tables?
- Editing ‘Password Reset’ E-mail
- How can I send a welcome email to a user AFTER they login for the first time?
- Customize wp_new_user_notification_email()
- Login email after registration never sent or received
- Add Confirm Password field in wp-login.php Password Reset page
- How can I modify the default reset (lost) password email text?
- How to customise wp-login.php only for users who are setting a password for the first time?
- Give visitor access to password protected page/post via external script
- Send reset password link to user from custom lost password form
- How can I retrieve the username and password from my WordPress installation?
- password protect individual pages
- Problem with logging in WP users automatically
- How to determine if a user has not changed default generated password
- Private page protected with username and password
- reset password link redirect to login page
- Password protect media attachment – share across guests
- Password reset – Disabled for LDAP accounts
- Why wp_update_user doesn’t update user_activation_key on users with apostrophes in their email?
- Forgot Password/ Password Reset Page does not exist
- Correct passwords keep appearing as incorrect
- Forgot password needs to redirect from wp-login to a custom page
- How can I change the email that is inside the default email texts of wordpress?
- How to password-protect everything except the logo
- Generate email on meta value update
- Why is wp-login trying to send an email?
- Is there anyway to get the inputted password string from the login form?
- Invalidate username if it contains @ symbol
- How can I password protect a WordPress site without requiring users to log in?
- Password not resetting on wordpress?
- autocomplete=”off” WordPress Login
- WordPress not logged in locally with correct username and password
- wordpress login without password just email address (NO 2 factor authentication with email)
- Sending new registration meta values to admin by email
- Can I protect a type of content site-wide with a single password?
- Password recovery URL has error – but not found in code or db
- Log in with email but no password
- Temporally disable password to login with empty password?
- I need to find which is the file that checks the DB for correct login (username, password)
- Updated : how to make email optional while user registration using default wordpress form
- Login form does not store/remember/suggest users password
- How to invalidate `password reset key` after being used
- WordPress password reset not working
- New user password confirmation sending wrong URL
- Locked out of WordPress admin area [closed]
- Global login to password protected pages
- Disable / Remove Password for Login WordPress
- WordPress does not send email confirmation to newly registered users
- How to password protect pages in WordPress
- confirmation email is send from my local host registration of a user but mail will not display in there email account?
- Chosen user password in registration is not being accepted on Login
- User login without username, only password
- wp_lostpassword_url not escaped
- Trouble logging in and/or changing password
- Cannot login with correct username and password anymore
- Log in a user upon password reset?
- SSO / authentication integration with external ‘directory service’
- Preventing session timeout
- Prevent wp_login_form() from redirecting to wp-admin when there are errors
- how to display the wordpress login and register forms on a page?
- How can I add a custom script to footer of login page?
- How do I turn off the ability to login?
- login to wordpress with Get variables instead of Post
- WordPress Login Footer URL
- Save last login date in global before change it?
- Is back-end access not required for an app to post to my blog?
- Store brute-force IP addresses
- deny IPs from wp-login using .htaccess
- How can I prevent my custom form from redirecting to wp-login?
- wp-admin returns 404 [closed]
- disable site_url redirect in wp-login.php
- Redirect login page except on reset pass
- Deep customization of wp-login.php
- Single sign on with custom site
- Enqueue new login style sheet
- WordPress Conditional Login Links
- Do more action after login successfully
- Cannot log into migrated site
- WordPress SSL not working [closed]
- How to Remove default “Login” link
- How to unpublish my new site while working on it?
- How to force “remember me” users to login again?
- User not able to sign in after wp_authenticate() and wp_signon() wordpress
- WordPress site login Redirect
- Thank You Page Layout Differs on User Logged In Status
- On Homepage “is_user_logged_in()” function is not working after login and it is working after refresh the page?
- Cant reset password my wordpress password not even with phpMyAdmin
- wp-cron event doesn’t run when custom login API is enabled
- Does it make sense to check a nonce on user log in?
- WordPress Auto Login From Email Link
- Building a custom login form – encountering issues
- Using WP page password protection as defacto login
- Front-end login problem: requires re-authorization when accessing dashboard
- Handle POST request sent from an external site for login?
- Unable to login after adding ReCaptacha without API key
- Must Log In to Visit Site [duplicate]