• I already have a bunch users that are member of our site. When I choose the Moderate registration feature, I have to go in an reactive them to allow them to have access to the site again. However, when I do, I noticed they get an email sent to them saying they’ve been activated/approved. This makes for a bad UX because they are already know their members. Is there way to get around this? Please advise. Thanks!

    https://www.ads-software.com/plugins/wp-members/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    So if you install the plugin on a site with existing users and you enable moderated registration, all the existing users need to be activated. There are two approaches to this to avoid resetting and emailing new passwords.

    First would be to include the password field as part of the registration form. This field, although now included as a default field on install, is not a default enabled field. When users choose their own passwords at registration, a password is not set when the user is activated.

    So this method has two possibilities – enable that field and use it as part of the registration process. Or, enable the field, activate all the existing users, then remove the password field – that way you kind of trick the plugin into thinking it does not need to set passwords for the users you are activating.

    The other possibility which is cleaner (in my opinion) but requires a larger skill set, is to update the users directly in the database. For each user ID, set a user meta in the wp_usermeta table with the meta_key “active” and meta_value “1”.

    Thread Starter Kevin Cooper

    (@kevincooper)

    Thanks. I the DB approach is probably faster. However, I have basic knowledge of mySQL using phpmyadmin. What’s the fastest way to batch add meta_key and meta_value to all the users at once through phpmyadmin instead of one by one? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Have to re-active current users?’ is closed to new replies.