I tried this code to get amount of discount but the problem is what is the first prameter :
edd_get_discount_amount('off1');
The off1
is name of discount.
Is above code right according to the usage of edd_get_discount_amount
function.
I tried this code to get amount of discount but the problem is what is the first prameter :
edd_get_discount_amount('off1');
The off1
is name of discount.
Is above code right according to the usage of edd_get_discount_amount
function.
edd_get_discount_amount expects an integer as parameter, this integer should be the id of the discount you would like to retrieve
edd_get_discount_amount( $discount_id )