• Everytime a user resets it’s password I receive an email to my admin email.

    As far as I know I cannot disable it by a setting.I can apply the following snippet

    add_filter( ‘send_password_change_email’, ‘__return_false’ );

    But I believe it should be somewhere over WordPress settings.

    WordPress doesn’t have a setting to disable the admin notification of a password reset.That’s why there are plugins like this:Disable User Password Reset Admin Notifications – WordPress plugin | WordPress.org https://share.google/fIAzgDHGcVsTFzYYo

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Radical Dreamer

    (@avagp)

    i forgot to change the title of the thread.

    should be: disable password reset admin email

    Moderator threadi

    (@threadi)

    This is a core WordPress feature for which there is no toggle in the backend, but rather a function that you must override to disable it.

    Example:

    if ( ! function_exists( ‘wp_password_change_notification’ ) ) {
    function wp_password_change_notification( $user ) {
    return;
    }
    }

    You can also solve this with a plugin:
    https://wordpress.org/plugins/disable-user-password-reset-emails/
    https://wordpress.org/plugins/disable-password-changed-email/

    However, I am aware of one exception to this function: if you use WooCommerce, WooCommerce accesses the function for sending the email in a different way. But there is a hook to disable this:

    add_filter( ‘woocommerce_disable_password_change_notification’, ‘__return_true’ );
    Thread Starter Radical Dreamer

    (@avagp)

    Thanks for the correction.

    But it shouldn’t be better to have a proper setting?

    Moderator threadi

    (@threadi)

    If you’d like to see this as a feature, I’d recommend submitting a ticket in Core Trac, including a description of where you’d expect it to appear: https://core.trac.wordpress.org – that way, the WordPress Core developers can review the case and decide whether it would be feasible.

    However, as I said, such a setting wouldn’t prevent other plugins, such as WooCommerce, from taking a different approach. With those, you’ll still have to configure it yourself.

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

You must be logged in to reply to this topic.