mycred_get_users_coupon_count

This function returns the total number of times a user has redeemed a specific coupon.

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_use_coupon

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

mycred_create_new_coupon

This function creates a new myCRED Coupon post object. Uses wp_insert_post.