USharing
开放博客

How do I show all the referrals a user made and the points they received for it?

You could use the mycred_total_points shortcode to show the user who views it how many points they have gained for referrals:

Example: Show the total number of points a user has gained for referring a visitor (assuming you reward this)

[mycred_total_points ref="visitor_referral"]

Example: Show the total number of poitns a user has gained for referring a signup (assuming you reward this)

[mycred_total_points ref="signup_referral"]

Unfortunately there is no shortcode to show a count but I might add that in to the shortcode as an option in 1.7.

P.S.

You can also use the mycred_history shortcode to show log entries just for referrals if you want to show a “referral history”:

[mycred_history ref="visitor_referral,signup_referral"]
赞(0) 打赏
未经允许不得转载:USharing » How do I show all the referrals a user made and the points they received for it?

觉得文章有用就打赏一下文章作者

微信扫一扫打赏