Title: functions
Last modified: July 21, 2026

---

# functions

 *  Resolved [aleksandreeu](https://wordpress.org/support/users/aleksandreeu/)
 * (@aleksandreeu)
 * [2 weeks, 5 days ago](https://wordpress.org/support/topic/functions-27/)
 * Hi, would it be possible to add function that will turn off notifications to 
   admin when customer resets password etc?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Nicolas Verlhiac](https://wordpress.org/support/users/nicolasverlhiac/)
 * (@nicolasverlhiac)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/functions-27/#post-18978342)
 * Hi, and thanks for the suggestion, it’s a good one.
 * Custom SMTP currently focuses on the sending path and the log, so it doesn’t 
   have switches for WordPress’s own automatic emails yet. You can turn those two
   admin notifications off today with two lines, in your theme’s `functions.php`
   or a small mu-plugin (the Code Snippets plugin works too if you’d rather not 
   edit files):
 *     ```wp-block-code
       // Stop the email sent to the admin when a user resets their passwordremove_action( 'after_password_reset', 'wp_password_change_notification' );// Stop the email sent to the admin when a new user registers (WordPress 6.1+)add_filter( 'wp_send_new_user_notification_to_admin', '__return_false' );
       ```
   
 * If the “etc.” covers other automatic emails (new user, updates, comment moderation…),
   tell me which ones and I’ll post the matching lines.
 * I’m also adding a “Manage notifications” screen to the roadmap: a list of WordPress’s
   automatic emails with simple on/off toggles, so none of this needs code. I’ll
   follow up in this thread when it ships.
   Thanks,Nicolas
 *  Plugin Author [Nicolas Verlhiac](https://wordpress.org/support/users/nicolasverlhiac/)
 * (@nicolasverlhiac)
 * [1 week, 4 days ago](https://wordpress.org/support/topic/functions-27/#post-18978569)
 * Hi,
 * This shipped in **2.7.0**, out today.
 * You will find it under **Settings → Custom SMTP → WordPress Notifications**. 
   Each email WordPress sends on its own now has its own checkbox:
    - Password reset notice to the administrator, the one you asked about
    - New user registered notice to the administrator
    - Automatic update reports, separately for core, plugins and themes
    - Comment awaiting moderation
    - New comment to the post author
 * A few things worth knowing. Nothing is switched off by default, so updating the
   plugin will not silence anything your site is already sending. A notification
   you switch off is never created at all, which means it will not appear in the
   Email Logs either, and the screen says so to save you looking for it. And the
   emails your users need to keep control of their account, the reset link itself
   and the address change confirmation, are deliberately out of reach: no settings
   screen should be able to break account recovery.
 * The two snippets I posted earlier still work if you would rather keep it in code,
   the checkboxes just do the same thing without the file editing.
 * Thanks again for the suggestion, it was a good one. Feel free to mark this resolved
   if it does what you needed.
 * Nicolas
 *  Thread Starter [aleksandreeu](https://wordpress.org/support/users/aleksandreeu/)
 * (@aleksandreeu)
 * [1 week ago](https://wordpress.org/support/topic/functions-27/#post-18981775)
 * Thank you. I have set not to receive notifications about pasword reset, and after
   couple days I received this notification, that some customer reseted password.
   SO I assume it does not work?

Viewing 3 replies - 1 through 3 (of 3 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffunctions-27%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/custom-smtp/assets/icon.svg?rev=3092032)
 * [Custom SMTP: Email Deliverability - FREE & Easy-to-use](https://wordpress.org/plugins/custom-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-smtp/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [aleksandreeu](https://wordpress.org/support/users/aleksandreeu/)
 * Last activity: [1 week ago](https://wordpress.org/support/topic/functions-27/#post-18981775)
 * Status: resolved