WordPress sends an email to the admin’s email when a user resets their password.
To get a notification when a user changes their password you could hook into the profile_update action which is fired when a user’s profile is updated.
When the action is fired WordPress has already validated and updated the user’s details we only need to check if the user submitted a password with the request, if it was submitted then the user’s password has changed.
function my_profile_update( $user_id ) {
if ( ! isset( $_POST['pass1'] ) || '' == $_POST['pass1'] ) {
return;
}
// password changed...
}
add_action( 'profile_update', 'my_profile_update' );
Related Posts:
- Editing ‘Password Reset’ E-mail
- How to apply the “retrieve_password_message” filter?
- How to change/rewrite the lost password url?
- Change Password Strength Indicator names?
- Change the default 10-day expiration for the password protected pages cookie
- How can I change the email that is inside the default email texts of wordpress?
- Prevent reset password specific user role
- 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?
- Better way to change the default password reset url with the woocommerce one?
- Change password reqts with NO plugin without breaking resetpass link?
- what is __return_false in filters
- How to filter users on admin users page by custom meta field?
- Passing Additional Parameters to add_filter Callable
- How can I add an Author filter to the Media Library?
- Modify WordPress Rest Api Request/Response
- How to add some custom HTML into wordpress admin bar?
- Remove “Private” + “:” in title does not work
- Adding a class to the body_class function
- Is it possible to use a forgot password url filter?
- Modify the post/entry wrapper markup in genesis childtheme [closed]
- Where is the proper place to add a filter for pre_get_table_charset?
- Change text of Description in Image Library
- Allowing non-latin characters in registration
- post_row_actions filter is not working while update post using quick edit
- About Hooks and Filters
- Should I use add_action(‘publish_post or add_filter(‘publish_post?
- How to always display a specific post from the search result first
- get_the_excerpt() with fallback like the_excerpt()
- Taxonomy Custom Column – ‘manage_{TAXONOMY}_custom_column’ filter only passing 2 arguments
- Adding custom column to comments admin panel?
- Filter out some plugin action in wp head / wp_footer
- Filter Gutenberg Blocks Content
- Can you use add_filter() inside other function?
- How do I replace a render_callback function for a block?
- check if FILTER(“the_content”) is being executed in `the_post()`
- Filter my args by the post 1st letter
- Limit RSS feed to previous calendar month
- Adding Filter to Homepage only
- How to stop wrapping comments in P tag
- How to modify core when there is no hook?
- Is this the proper way of switching the “Edit My Profile” link with my BuddyPress “Extended Profile” link?
- Does auto_update_plugin Filter Work When Put In Theme’s functions.php File
- In need of a content replace filter for posts in a specific wordpress category
- html tags in gettext hook get escaped
- How to remove action with slashes and arrows?
- Inline Styles on all native blocks
- How to filter post content and force every link () made in blocks to return urldecode() with readable value?
- Set default terms for new posts / CPTs
- Get .subsubsub count of post per status queried using pre_get_posts
- Adaptive product filters for WooCommerce
- Changing WordPress core without hacking core
- Link to Shop-Filter with .current-menu-item
- Plugin options, presets and filters : can you help me improve my workflow?
- Remove posts inside pre_get_posts using a custom query
- Remove / Hide Attachment Display Settings in Add Media popup / dialog
- Get Posts updated or published within the last x hours
- the_content filter together with require_once returns 1 instead of the content of the included file
- preview_post_link for Custom Post Types
- Filter an array with a callback – for single & multidimensional arrays
- Detect when gutenberg editor title is available in Dom after editor load
- How to apply a filter to an ACF wysiwig editor field output?
- Are href attributes of a elements filtered on output to add the current path?
- Add a filter to an action [closed]
- Regarding post text filtering
- Add Filter not working with get_posts
- How to Prevent WordPress to encode html in post?
- Why template_include filter does not work with WPML plugin?
- Hide Posts In Back-end/Admin Based On User’s (Pseudo) Privileges Controlled by ACF
- Filter Pages by Custom Field (ACF) in admin area
- Most performant/functional way to add actions/filters?
- Remove tags without a specific meta key from “choose from the most used tags”
- Making an add_filter() call from within an add_filter() call
- automatic title through filter
- Action hook to control access to certain parts of my site
- Finding actual functions added to hooks and filters
- Buddypress Filter Multiple Activities [closed]
- How to apply filter on get_the_post_thumbnail()
- Use alternative front page if cookie is set
- How do I check if I can use the allowed_block_types filter?
- Setting the page title in a plugin, but not outside my plugin
- how to output HTML tags in post_content and not as plain text
- Security question – Display a General Custom Login Error Message
- Action for opening attachment or manipulating all attachment links
- Filter wp_mail based on content type
- Remove the post_content search from WHERE clause (and CONCAT sql function)
- mu-plugins body_class filter not working
- How to apply a filter to everything?
- WP Job Manager – display search results from custom search form in taxonomy-job_listing_category page
- Conditionally (cpt) filter previous and next_post_link
- Post filter Month dropdown at front-end like wordpress backend
- changing size image within the content
- WP Dashboard -> Posts-> Filter by Category -> Form Method Change : Which Hook
- Show child theme for users on specific IP
- Is there a way to overwrite a filter used in canonical.php?
- How do I remove certain HTML elements with specific classes from the feed?
- Sanitizing a custom query’s clauses
- How can I display wp_link_pages before a shortcode, if it is used, or display after content?
- confusion with add_filter
- post->post_content filter