This shortcode will show the total number of points a user has gained in a given timeframe. For example you can show the total number of points a user has gained today (default).
||int or string||No||-||Option to set from when we should start adding up points. Accepts:
||int or string||No||-||Option to set what time to stop counting. Accepts:
||string||No||MYCRED_DEFAULT_TYPE_KEY||Option to count a specific point type.|
||string||No||-||Option to filter results by reference.|
||int or string||No||-||Option to set the requirement for a particular user. Should not be used unless you must check a different user, than the one viewing the shortcode.|
||int||No||1||Option to set if the results should be returned raw (0) or formatted (1). Defaults to formatted.|
This shortcode does not return any stylable elements.
Example 1: Show the total number of points a user has gained from Approved Comments today.
Example 2: Show the total number of points a user has gained since January 1st, 2016
Example 2: Used inside the Loop, show the total number of points the posts author has received since they joined.
[mycred_total_since user_id="author" from=0]