The filter for the Message that is sent to reset your password is retrieve_password_message. You use it like this:
add_filter('retrieve_password_message','my_awesome_new_password_reset_email',10,4);
function my_awesome_new_password_reset_email($message, $key, $user_login, $user_data){
$message = "Hey, you need a new Password? Click here: ".site_url( "wp-login.php?action=rp&key=$key&login=".rawurlencode( $user_login ),'login')."!";
return $message;
}
$message is the original E-Mail Body, $key is the reset password key, $user_login is the username and $user_data is the WP_User object of the User.
If you return an empty string for $message, no E-Mail will be sent for the “lost password” action.
Happy Coding!
Related Posts:
- WooCommerce lost password reset flow not working with SendGrid (redirect loop)
- Is there a Woocommerce hook that fires when applying a coupon but before checking if it’s valid?
- What is the action hook for an order that fails on frontend checkout in WooCommerce?
- Which hook should I use to capture $_POST(‘password’) via profile update and password reset
- password_reset doesnt work
- Display custom product option in admin order details
- Combine one action and one filter
- Overriding Plugin function in your child theme
- Forgot password flow does not work, getting email with a link but after clicking link it’s not working
- WordPress Reset password Strength set to medium
- Reposition variation stock message
- Editing ‘Password Reset’ E-mail
- WooCommerce changes lost password reset link
- Adding an action within a function that is being called by add_filter
- Show only geolocated user country into Woocommerce checkout country fields
- Reverse engineering of WooCommerce Storefront filters
- How to modify “[Product] has been added to your cart” in WooCommerce?
- WordPress codex: apply_filters – clarification on creating a new hook on the fly. How do we use it?
- Preventing WooCommerce email sending only on particular conditions
- woocommerce fail to replace template string in email title [closed]
- Woocommerce – Hide a Column in Cart Table
- WooCommerce: display text instead of raw checkbox value email
- Editing Header Titles of each details in woocommerce Order Email [closed]
- Filter on a custom product attribute in WooCommerce using meta_query or tax_query [closed]
- Woocommerce : How to attach an custom attachment with customer-processing-order.php email template [closed]
- WooCommerce email text based on category && shipping zone && payment method [closed]
- WooCommerce: Email Notifications
- How to change currency programmatically on creating order action?
- Accessing parameters when adding filter
- woocommerce_email_attachments filter arguments [closed]
- Using a filter with multiple parameters and $this
- WordPress ‘on behalf of’ email
- WooCommerce: The model of e-mail is displaying only the html, not css [closed]
- How do I hide the purchase note in the WooCommerce ‘order completed’ email?
- How can I add an additional action button into the woocommerce admin order page?
- Woocommerce: Prevent sending of email when order is “Completed”
- Edit WooCommerce product content based on category
- How to add a user custom field into Woocommerce emails?
- Separeting product from post in search result
- Woocommerce get billing state manually
- Redirect customer to login page (with other signup plugin) if user not logged in when proceeding to checkout
- How to list all WC products by their attributes values?
- WooCommerce order complete email logic
- woocommerce email template detect email recipient
- Adding extra email address who receives email like admin – woocommerce
- Woocommerce: Complex query in pre_get_posts [closed]
- Using a filter to change a path
- How can I change the email that is inside the default email texts of wordpress?
- woocommerce_new_product action doesn’t fire
- Pre filter woocommerce products to remove a certain category of products
- Woocommerce password Reset
- Send email notifications to a defined email address depending if a product in order has a specific TAG [closed]
- How to add order status class to the body tag?
- Woocommerce emails from gmail not being sent
- lost password link not working for my site
- Redirect no product url’s to static url
- What Hook/Action is performed when a field in checkout form is changed in WooCommerce
- Woocommerce – Adding row to cart table
- How can I remove a WooCommerce Product Tab’s sub section in wp-admin?
- wordpress/woocommerce login url not redirecting correctly
- Show password while you are typing it on the “my account” login page
- Functions.php change for Woocommerce not working
- How to access page variable inside action hook
- What is the action hook to use if you want to capture the new password during password change?
- Which Filter Do I Use To Modify The Subject Of The Retrieve Password Notification Email?
- Create new email in WooCommerce
- manage_shop_order_posts_custom_column() hook is Not working In Functions.php file in my WordPress active theme
- How to check if woocommerce_order_item_name is use in email?
- How to create a WooCommerce Product filter based on PHP foreach
- WordPress woocommerce new order email not working
- Custom Email via Hook only for completed order
- Woocommerce : Add name filed of checkout page to buyers wordpress display name
- Two Filter Issue [closed]
- Redirecting orders by company field
- I’m getting error Ultimate WooCommerce Filters
- How can I send information when a order is completed to my own POS?
- Change password notification email
- How to add (and change the font of) the short product description to order page and customer’s new order e-mail [closed]
- Parameters in woocommerce_before_add_to_cart_button hook
- How can i add product Accessories from front-end using custom php form?
- How to send Woocommerce Customer Details (Name, Email and Phone Number) to Admin upon signup
- Using admin email in billing address
- Filter orders in Admin area based on logged in user
- Send a different “thank you” email based on payment method
- Customer Email Address
- How can I locate where the actions are defined? [duplicate]
- Adding time of order to Admin email for new order
- woocommerce price filter not working when change currency
- With what hook do I remove WooCommerce existing Product Data Tab form fields?
- how to add custom reviews button in woocommerce order complete generated mail
- How to add coupon expiry date into the followup emails?
- Which method is more correct for removing WooCommerce Extensions menu item?
- Help needed with woocommerce (wc stripe) filter
- Put data in my-account/view-order/id/ page
- Turkish Character Problem on mailing
- How to override email text New Customer Order?
- Woo-Commerce new order email no style attached
- Insert a custom field as a second email address to a completed order in WooCommerce
- AffiliateWP not calculating multiple quantities when using affwp_calc_referral_amount filter
- Add custom ID to WooCommerce product tab