opencredit / badgeos

BadgeOS is a plugin to WordPress that allows you to easily create badges and set up the steps and achievements users take to earn them. Badges are Mozilla OBI compatible and sharable via Credly.
http://www.badgeos.org
GNU Affero General Public License v3.0
92 stars 64 forks source link

badgeos_get_users_points should get default achievement type otherwise it shows 0 #686

Open zishanj opened 4 years ago

zishanj commented 4 years ago

There is a function difference in latest BadgeOS 3.2. badgeos_get_users_points now have 2nd parameter also which defaults to 0 and a correct achievement id must be provided otherwise it will show 0 points. In my case the achievement id was 1648 and it works.

BadgeOS should get the points from default achievement type if achievement id is not provided to make the function backward compatible.

zishanj commented 4 years ago

In settings there is only field for default point type, if another field for default achievement type can also be provided then I guess it will become backward compatible.