Registration notification | WordPress.org

[ad_1]

Hi,

Is there any chance you could provide me with the code to disable the registration notification email? I know that in the pro version, there’s an option to switch from “Registration notification sent to WordPress default” to “Registration notification sent to Nobody,” which is exactly what I need. However, I don’t require the other features of the pro version and would prefer not to install an additional plugin.

I would greatly appreciate it if you could guide me on how to achieve this functionality without purchasing the pro version.

I’ve tried the following code in functions.php, but it isn’t working:

function disable_password_setup_email($wp_new_user_notification_email, $user, $blogname) {
if (isset($user->user_pass) && !empty($user->user_pass)) {
return $wp_new_user_notification_email;
}
return false;
}
add_filter(‘wp_new_user_notification_email’, ‘disable_password_setup_email’, 10, 3);

Thank you in advance for your assistance!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer