Approve member from API
-
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?
The topic ‘Approve member from API’ is closed to new replies.