Programmatically Clone Discount Code
-
Hi,
I’m trying to copy(clone) existing discount codes and create new ones (with new names) based on it programmatically and looking for a safe way and the best practice.
By looking into the code, there is a function named
edd_add_discount( $data )
. It looks like it takes a nonce and some internally configured values. So I’m wondering what’s the best way to do it.Any help would be appreciated. Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Programmatically Clone Discount Code’ is closed to new replies.