• Resolved Daniel Avram

    (@danieldumitruavram)


    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!

Viewing 1 replies (of 1 total)
  • Plugin Support Robert

    (@robertnextendweb)

    Hi @danieldumitruavram

    Please note that we are unable to provide support for custom coding of any kind.
    Currently, your code will return the unchanged notification email in our case, as the condition you set will be evaluated to true.

    If you cannot seem to make this happen, then I would rather recommend getting the Pro version, or hire a developer who can make the code for you.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.