In order for the
WC_Coupon
function to work, I needed to add the "new" keyword prior to calling the function. As demonstrated below.$coupon_code = 'save10percent'; global $woocommerce; $c = new WC_Coupon($coupon_code);Now I can get details about the coupon like so
echo "Discount Amount ".$c->amount;//Get Discount amount echo "Discount Type ".$c->discount_type;//Get type of discount echo "Individual Use ".$c->individual_use;//Get individual use status echo "Usage Count ".$c->usage_count;//Get number of times the coupon has been used echo "Uage Limit ".$c->usage_limit;//Get usage limit echo "Coupon Description ".$c->description;//Get coupon description