Approving users after update not working anymore.
-
Hello,
I reviewed your changelog and noticed the deprecation of the
UM()->user()->approve( $repeat )
function. The changelog recommends usingUM()->common()->users()->approve( $user_id, $force )
instead.I understood that “deprecated” means the function is still operational but will eventually be removed in future updates. After applying the update, I can still deactivate users using the old function, but I’m unable to reactivate them with
UM()->user()->approve( $repeat )
.I’m considering updating my code to use the new function
UM()->common()->users()->approve( $user_id, $force )
. However, I’m unclear about the new parameters:$force
: What does this parameter do? When should it be set totrue
orfalse
?
Additionally, could you explain what the
$repeat
parameter in the old function was used for, or if it’s no longer necessary with the new function?Thank you for your assistance!
- You must be logged in to reply to this topic.