• Resolved KingBull

    (@kingbull)


    Hello.

    In conjunction with my WordPress site I also run a standalone system that I have written – completely independent of wordpress files and functions, however it does allow the user to perform certain tasks on wordpress.

    What I want to do now is to allow a user to approve or reject a pending user from this system, but I am unsure of how to do this.

    I have tried editing the dr_usermeta in the database by setting the pwe_user_status from “pending” to “approved” but this doesn’t seem to do the trick.

    So my question is: how can I manually approve/reject a user that’s pending from a non-wordpress platform?

    Thanks.

    https://ww.wp.xz.cn/plugins/new-user-approve/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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?

    Thread Starter KingBull

    (@kingbull)

    @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.

    Thread Starter KingBull

    (@kingbull)

    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?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Approving users outside wordpress’ is closed to new replies.