• Resolved Grof

    (@grof)


    Hello,

    I have a problem with API function:
    UM()->common()->users()->approve($user_id, true);

    Previously we were using UM()->common()->users()->approve() function for approving inactive useres via php script. But, after later updates this doesn’t work. I saw that this function deprecated and the new one is:

    UM()->common()->users()->approve($user_id, true);

    But after apply this function in the code, still doesn’t work.

    This is a snippet :
    if (um_user(‘account_status’)==’inactive’) {UM()->common()->users()->approve($user_id, true);}

    Can you tell me where is the problem?

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

The topic ‘Approve member from API’ is closed to new replies.