mycred_get_global_coupon_count

This function returns the total number of times a given coupon has been redeemed on your website.

mycred_get_unique_coupon_code

This function will generate a unique random code for coupons.

mycred_get_coupon

This function returns a coupon object based on a coupon post ID.

mycred_get_badge_ids

This function returns an array of published badge IDs.

mycred_get_users_badges

This function returns an array badge IDs that a given user has earned.

mycred_get_badge_references

This function will return an associative array of references and badge IDs that exists on your website.

mycred_get_badge

This function returns the myCRED Badge Object for a given badge ID.

mycred_force_singular_session

This function is used throughout myCRED to prevent users from attempting to submit AJAX forms multiple times.

mycred_date_to_gmt_timestamp

This function will convert a well formatted date to a GMT unix timestamp.

mycred_display_badge_requirements

This function will return the requirements you set for a particular badge in readable format.

mycred_display_users_badges

This function renders a list of all the badges a give user has earned.

mycred_display_users_balance

Returns a given users current balance for a specific point type formatted.

mycred_coupon_was_successfully_used

This function checks if a coupon was successfully applied or not. Should be used in combination with the mycred_use_coupon function.

mycred_count_users_without_badge

This function counts the number of users that has not earned a given badge.

mycred_count_users_with_badge

This function counts the number of users that has a given badge with the option to count badge level.

mycred_use_coupon

This function will validate and a given coupon code and if the coupon can be used, redeems the coupon.