Hello @tonygao ,
You can use mycred_add function or add_creds or $mycred->add_creds to reward users with points. When the users status is pending the user will not get any rewards. Points are awarded when the user status is approved.
Here is the link to the documentation.
Documentation Link
Let me know if you have any questions further.
Thanks & Regards,
WP Experts Support Team
Hi @daniyalraza01,
The users are already approved before adding credit to their account. Our use case like this: after someone buy a course on our website, we send money to course creator by adding credits to their account, but buyer may request money back within 30 days, so we need to hold the money in that 30 days, that means the course creator can’t withdraw it to bank.
Hello @tonygao,
You cannot achieve it through mycred_add function. Through this function the user will get points automatically. You will need to make a mechanism of it through some custom coding.
In our premium addon myCred Transfer plus there is an option for pending transfers. You can go through its documentation. Here is the link
Documentation Link
Let me know if you have any questions.
Thanks
@masterseoonline
Good question! What’s the difference?
Hello @masterseoonline @tonygao,
Yes, you can use myCred Pending Points as well to achieve it. The difference between myCred pending transfers and pending points is that pending transfers is only for transfers. While pending points can be applied on myCred Pay with Points (our Woocommerce payment gateway) and other pending payment scenarios.
Hope you understand now.
Thanks