Disable Wordpress Notification
Hi Community!
I would like to know how can I disable the login details notification for non-admin user, there is no reason to send the website administration login link to a community member (subscriber). please help.
Thank you.
I have the same concern / request. It's confusing the users.
To do this, simply install the βSnippetsβ plugin and insert the following code there:
add_filter( 'wp_new_user_notification_email', 'disable_new_user_notification', 10, 2 );
function disable_new_user_notification( $email_data, $user ) {
$email_data['to'] = ''; // Entfernt den EmpfΓ€nger der E-Mail
return $email_data;
}
AndrΓ© SalierΒ Thank you πΈ
AndrΓ© SalierΒ Thank you. Could this go in a child theme Functions file as well?
Lee BuschΒ That should work too, but for me the easiest way was to use the plugin.
AndrΓ© SalierΒ Thank you. (i had already started using a child theme for other modifications... one less plugin...)