Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试过这段代码来获得折扣,但问题是第一个参数是什么:
edd_get_discount_amount('off1');
off1是折扣的名称。
off1
根据edd_get_discount_amount函数的用法,上面的代码是正确的。
edd_get_discount_amount
edd_get_discount_amount 需要一个整数作为参数,这个整数应该是您要检索的折扣的 id
edd_get_discount_amount( $discount_id )
简单的数字下载 discount-functions.php