• Resolved ttoman

    (@ttoman)


    Hi there. An excellent plugin.

    I have a CRM plugin, where is the extended list of users. I managed to include “approved/inactive” info for each person in every row of that list.

    Now I’d like to add the link to deactivate the user (if the user is activated) and re-activate the user (if the user is inactive) on every row of the user.

    There’s an example explanation in the “um-user.php” how to deactivate the user:

    um_fetch_user( 32 ); /* OK, replace 32 with $user_id request I guess? 🙂
    $ultimatemember->user->deactivate();

    Could you please give me a little help, how to do it in another plugin?

    Have a great day,
    Tom

    https://wordpress.org/plugins/ultimate-member/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘How to deactivate a user from another plugin?’ is closed to new replies.