Hey, I am trying to do the same thing here. I need to create a Administration page inside wordpress from which a user can approve and deny users. I was trying to use the current plugin classes in a custom template. Any other idea’s anyone?
@zainsohail19,
what you want to do is not exactly what I’m doing. I’m doing an external system while you are doing an internal. There would be different solutions here so I would advise creating your own topic instead.
The only thing that is happening when a user’s status gets updated is the user_status user meta field is updated and an email is sent. That is how it is done from within WordPress. I’m not sure what I can do to help you update a user from a non-WordPress platform.
Hey Josh,
Thanks for your reply. I’m unsure why this doesn’t work then because I am updating that field correctly.
Whenever manually updating the pw_user_status field of the user, from “pending” to “approved”, the dashboard doesn’t seem to respond to neither the “Approve” or “Reject” buttons. To make it work again, I have to change the value in the database back to “pending” and then click on “Approve” on the dashboard.
Here is a screenshot of user with id=58 that demonstrates this: http://i.imgur.com/t1JMTCq.png
It really seems as if there is something else that needs to be updated as well.
UPDATE: I asked this user to try and login (after me setting the db-field to “approved”) which he could. His account still shows up as unapproved in the dashboard though. Ideas of how to fix this?