0

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.

Cedric
  • 5,135
  • 11
  • 42
  • 61
Mahdi98
  • 135
  • 1
  • 2
  • 8

1 Answers1

0

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 )

easy digital downloads discount-functions.php

Cedric
  • 5,135
  • 11
  • 42
  • 61