Code am Macbook Bildschirm Webdesign Webentwicklung Wordpress

How to disable WordPress „Password has been changed“ emails

WordPress sends emails by default with info that a password has been changed. This can be quite annoying, so I’ll show you how to disable these email notifications.

Weiterlesen: How to disable WordPress „Password has been changed“ emails

These email notifications are not sent to an admin, but to the email address that is stored in the wordpress settings. This is for security purposes and to inform the owner if someone has requested „Forgot password?“ and changed their password.

For websites with many users (e.g. communities, online shops, etc.), this can be quite annoying if emails arrive constantly.

To disable this feature, you need to add the following code to the „functions.php“ file in your theme:

if ( !function_exists( 'wp_password_change_notification' ) ) {
    function wp_password_change_notification() {}
}

How do I find and edit the „functions.php“ file?

There are several possibilities:

WordPress backend

Log in to your WordPress backend as an administrator. In the menu item „Design“ you will find the sub-item „Theme file editor“. In the right column, select the file „Theme Functions“ ( functions.php) and you can insert the code in the editor.

FTP

Solltest du keine Berechtigungen im WordPress Backend haben, dann kannst du die Datei auch per FTP herunterladen, bearbeiten und wieder hochladen.

Using an FTP client such as FileZilla or CyberDuck, you can connect to the FTP access data of your hoster. There you will see all files of your WordPress installation. In the folder /wp-content/themes/ you will find the installed themes. Open the folder with the name of your theme and there you will find the file functions.php. You can now download this file, edit it in a code editor of your choice – i.e. simply insert the above-mentioned code at the bottom of the file – and then upload it again.

With a code-embed plugin

I am not a friend of unnecessary additional plugins, so I mention this way only at the end. But if you didn’t make it through the two ways above, you can also simply install a plugin such as My Custom Functions to insert the code.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Weitere Artikel

US LLC gründen: Ein umfassender Guide für digitale Nomaden und ortsunabhängige Unternehmer

Immer mehr Menschen träumen davon, den gewohnten Alltag hinter sich zu lassen und als digitale Nomaden die Welt zu entdecken. Den Wohnsitz im Heimatland aufzugeben, …

Elementor V4: Die neusten Updates 2026

Elementor V4, der sogenannte Atomic Editor, ist nach fast einem Jahr intensiver Entwicklung (Alpha seit Mai 2025) endlich in der Beta-Phase mit Elementor 3.35 angekommen. …