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
- How to disable Woocommerce password recovery and use the default WordPress password reset page?
- 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
- Remove action on product archive page [closed]
- How to remove_action inside class [duplicate]
- 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]
- Unable to programmatically remove product from WooCommerce cart
- 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]
- Rewriting Woocommerce Product Filters To URL Segments
- 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
- woocommerce_get_price filter hook not working for product variation price
- How to change currency programmatically on creating order action?
- Remove action added through function
- 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?
- Add custom order meta to 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?
- How to check current user before all actions and filters?
- Remove add to cart icon/view product button woocommerce
- 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
- Custom Admin Email Subject for Woocommerce (3.8.0) Orders
- 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 Hook: Content get’s displayed twice and not AFTER the order total
- 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
- Add shipping address to Woocommerce order emails [closed]
- Woocommerce password Reset
- How to apply these filters
- 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
- Send admin new order email to logged in user as well
- Woocommerce – Adding row to cart table
- Clients with empty username are not receiving request new password email
- How can I remove a WooCommerce Product Tab’s sub section in wp-admin?
- Filter WooCommerce archive pages by an additional category
- 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
- How do I create a filter to hide the One Click Accessibility plugin button in WordPress?
- 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
- Access custom meta_data in processing order email
- Woocommerce : Add name filed of checkout page to buyers wordpress display name
- Two Filter Issue [closed]
- apply_filter and add_filter conflict
- Woocommerce – Hide shipping at all, if only certain product or products with certain shipping class is in the cart
- Running JavaScript after using WooCommerce Filter Plugin
- Redirecting orders by company field
- Assign user role by text field in WordPress (Woocommerce) [closed]
- 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