![](/img/trans.png)
[英]How to exclude downloads using edd_store_discount function for easy digital downloads plugin
[英]Easy Digital Downloads - how to get discount amount?
我尝试使用此代码来获得一定数量的折扣,但问题是第一个参数是什么:
edd_get_discount_amount('off1');
off1
是折扣的名称。
以上代码根据edd_get_discount_amount
函数的用法edd_get_discount_amount
。
edd_get_discount_amount需要一个整数作为参数,该整数应该是您要检索的折扣的ID。
edd_get_discount_amount( $discount_id )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.