• Resolved mateopang

    (@mateopang)


    Hello!
    I tried this free version of the plugin, and installed it as normal.

    Once someone creates an account, it says they will be on a pending list until approved, and myself as the admin, receives the approval e-mail, however if I don’t do anything, i receive the access within a few minuts with a link to set my password, and then I am able to login to the account, without any approval.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support muddasirhayat

    (@muddasirhayat)

    Hello @mateopang,

    Thank you for reaching out to us. We hope you are doing well.

    Could you please let me know which specific plugin you’re using for the registration process? This will help me better understand the issue and offer more tailored advice or troubleshooting steps.

    I’m here to help, so feel free to reach out if you need further assistance.

    Thanks & Regards,
    WP Experts Support Team

    Plugin Support bukhari10

    (@bukhari10)

    Hello @mateopang,

    We are pleased to inform you that the issue has been fixed in our latest update, version 2.6.5.1. Please download and check this version, and let us know if you need any further assistance.”

    Thank you.

    Thread Starter mateopang

    (@mateopang)

    Thanks!
    However, I already solved the problem via the functions.php this way:

    add_filter(‘authenticate’, function ($user, $username, $password) {
    if (is_a($user, ‘WP_User’)) {
    // Always allow administrators to log in
    if (user_can($user, ‘manage_options’)) {
    return $user;
    }

        $status = get_user_meta($user->ID, 'pw_user_status', true);
        if ($status && $status !== 'approved') {
            return new WP_Error(
                'approval_pending',
                __('Your account has been registered, but must be manually approved by an administrator. You will receive an email once it is activated.', 'new-user-approve')
            );
        }
    }
    return $user;

    }, 30, 3);

    // 📪 2. Disable the automatic email with password setup after registration
    remove_action(‘register_new_user’, ‘wp_send_new_user_notifications’);
    remove_action(‘register_new_user’, ‘woocommerce_registration_redirect’, 10); // optional, only if WooCommerce overrides the redirect
    add_filter(‘woocommerce_email_enabled_customer_new_account’, ‘__return_false’);

    // ✅ 3. Send activation/password setup email only after manual approval by admin
    add_action(‘new_user_approve_approved’, function ($user_id) {
    wp_new_user_notification($user_id, null, ‘user’); // send the password setup link
    });

    Plugin Support hamzawpexperts

    (@hamzawpexperts)

    Hi @mateopang,

    Thanks for getting back to us. We have attached a video and image of the New User Approve Free plugin Version 2.6.5.1, which shows that users cannot receive an approval email until the admin approves it. However, adding code separately in functions.php is not a good practice, as we have already added this functionality to our plugin.

    Make sure you are using the updated plugin of New User Approve.

    If you have any questions, feel free to reach out. We’re here to assist you.

    Thank you

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