Category: mycred/coupon

A compilation of items related to Coupons via the Coupons add-on.

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.

Continue Reading

mycred_create_new_coupon

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

Continue Reading

mycred_get_coupon

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

Continue Reading

mycred_get_global_coupon_count

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

Continue Reading

mycred_get_unique_coupon_code

This function will generate a unique random code for coupons.

Continue Reading

mycred_get_users_coupon_count

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

Continue Reading

mycred_load_coupon

This shortcode allows your users to redeem coupons you created using the Coupons add-on.

Continue Reading

mycred_use_coupon

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

Continue Reading