Auto Approve User on Registration behavior change
-
I’m not sure if this is a bug or an enhancement, but it is a change in behavior that I don’t think has been reported.
I have been using the code from https://docs.ultimatemember.com/article/1650-auto-approve-a-user-on-registration-in-wp-admin to auto-approve a user when they are added by an admin, which is the only way someone can be registered on the site. The code recently stopped working and I learned that UM()->user()->approve(); has been deprecated and the correct syntax is now um()->common()->users()->approve($user_id, true);. I updated my function but, unfortunately, the approval was still not happening.
I then tried updating the role’s Registration Options to Registration Status = “Auto Approve”, which in the past has only applied to self-registrations, and deleting the auto-approve function. Now when an admin adds a new user, they are approved as I want them to be, but I am not sure whether that is what the UM developers intended.
I don’t really care which way it works, just so I know which it is!
- You must be logged in to reply to this topic.