Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

What php function is used to update point (bonus point) of user in source?

0 votes
73 views
asked Dec 24, 2017 in Plugins by Nguyễn Phúc Bảo
edited Dec 28, 2017 by Scott
Everyone asks me what php function is used to update point (bonus point) of user in source?
Q2A version: v2.7
commented Dec 24, 2017 by Shrisun
Q2A version 2.7, why so? There are big updates now .

1 Answer

+1 vote
answered Dec 28, 2017 by Scott

You can set the bonus points with the function

qa_db_points_set_bonus($userid, $bonus)

If you want to add points to existing bonus points you’ll need to get the user’s bonus points first. 

...